UITableView selection issue in iOS -
i found several questions similar mine maybe not related same problem. i'm using swift code , noticed problem using tableview. want implement cell selection using didselectrowatindexpath. method works if create uitableviewcontroller class scratch. on contrary using uiviewcontroller tableview using proper delegates uitableviewdatasource , uitableviewdelegate same method not work.
i don't know i'm doing wrong.
edit: cell selection implemented as
func tableview(tableview: uitableview, didselectrowatindexpath indexpath: nsindexpath) { println("selected") } adding override in uitableviewcontroller class
my main viewcontroller has following protocols
viewcontroller: uiviewcontroller, uitableviewdatasource, uitableviewdelegate { // code here .... }
this code has no errors. make sure have connected delegate xib or storyboard or code , check maybe have edited in xib selection property of tableview or tableviewcell
Comments
Post a Comment