didselectrowatindexpath - UITableViewController indexPathForSelectedRow returns incorrect value -
i'm not sure going on have list has 3 items , selecting row 1.
i using viewcontroller uitableviewcontroller , has property tableview accessing indexpathforselectedrow during didselectrowatindexpath.
for reason value incorrect sometimes...
what cause this?
the uitableview * param on didselectrowatindexpath called tableview.
if table has more 1 section can confuse things (it's caught me before). indexpath.row return row number in section of table, not row number of overall table. if that's not you're expecting it'll appear wrong.
Comments
Post a Comment