ios - Swift 2.2 syntax error: Cannot call value of non-function type 'UITableView!' -
i using tab gesture in uitableview cell following error occur.
"cannot call value of non-function type 'uitableview!'" using following code inherited previous objective c project:
var p: cgpoint = sender.locationinview(self.tableview) var indexpath: nsindexpath = self.tableview(forrowatpoint:p) var buttontag: int = indexpath.row var selectview = self.storyboard?.instantiateviewcontrollerwithidentifier("dropdownselectionviewcontroller") as? dropdownselectionviewcontroller var selectwithnavibar: uinavigationcontroller = uinavigationcontroller(rootviewcontroller: selectview!) if (buttontag == team_row) { getpeopleswithmenutype(team) }else{ if (buttontag == offices_row) { selectview?.menuname = offices_menu // selectview?.ismultipleselection = yes }else if(buttontag == categories_row){ }else if(buttontag == internal_groups_row){ } }
i appreciate if help.
this line
self.tableview(forrowatpoint:p)
is source of problems. want self.tableview.indexpathforrowatpoint(p)
Comments
Post a Comment