I have 15 rows in my table. When I select the first row and scroll to last row of the table, and come to back to the first row, my selection is reset. How can I fix this row selection reset issue when scrolling the table?
A:
How are you selecting the row? Because of the table-cell reuse mechanism, just setting the selected
property on an individual cell usually won't work; calling -selectRowsAtIndexPaths:animated:
on the table view itself is the correct way to set its selection.
Noah Witherspoon
2010-09-23 13:19:09
i'm selecting the rows in didSelectRowAtIndexPath:(NSIndexPath *)indexPath, how to call this selectRowsAtIndexPaths function..
Sam
2010-09-23 13:42:18