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

Popular posts from this blog

Load Balancing in Bluemix using custom domain and DNS SRV records -

oracle - pls-00402 alias required in select list of cursor to avoid duplicate column names -

python - Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>] error -