I made a UITableViewCell and I have 20 rows in that table in which 5 at a time on screen.
I have set accessory view checkd mark in didSelect delegate method on which row is being selected. My concern is let suppose first row is selected and its accessory type is checked, now if i scroll the table we see the sixth one is also checked. I know that the cell is reusing itself and not creating itself again.
I made a UITableViewCell and I have 20 rows in that table in which
Share
The model should be able to handle which cell is checked and which is not. To simplify the problem, you can keep an array which will the
NSIndexPaths that should be checked. If only one can be checked at the time, an ivar of the typeNSIndexPathis more than enough.