Closed GoogleCodeExporter closed 8 years ago
Probably due to table cell re-use, which is the correct thing to do. Ideally
the selection would need to be cached
in some structure of your choosing so that next time the cell is re-created on
screen (ie- when you scroll back
up) you can tell the cell it is "selected" already...
Original comment by kevinh...@gmail.com
on 11 Aug 2009 at 11:15
I see. I'm already saving selected state in own objects, but when cells get
(re-)initialized this is not reflected ...
Original comment by din...@gmail.com
on 11 Aug 2009 at 11:58
Can you go into the NethackMenuViewController.m at
- (UITableViewCell *)tableView:(UITableView *)tableView
cellForRowAtIndexPath:(NSIndexPath *)indexPath {
and add:
cell.selected = i.isSelected;
right before you return the cell? I think that might do it...
Original comment by kevinh...@gmail.com
on 11 Aug 2009 at 12:24
already done in local version, haven't gotten to test it yet
Original comment by din...@gmail.com
on 11 Aug 2009 at 12:33
Cool, you might also need this: (?)
cell.accessoryType = i.isSelected ?
UITableViewCellAccessoryCheckmark:UITableViewCellAccessoryNone;
Hope it works :)
Original comment by kevinh...@gmail.com
on 11 Aug 2009 at 12:39
r83
Original comment by din...@gmail.com
on 11 Aug 2009 at 2:29
Original issue reported on code.google.com by
din...@gmail.com
on 11 Aug 2009 at 11:10