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

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -