Reputation: 6539
I want to keep a cell selected, and only change when I select another cell. In tableView:cellForRowAtIndexPath: I have set a selected cell with [cell setSelected:YES]. I know the cell is selected, but it is not shown. When I call [tableView reloadData] the selected cell flashes.
Any ideas?
Upvotes: 10
Views: 9508
Reputation: 3517
You should use selectRowAtIndexPath:animated:scrollPosition:
instead of the selected property for UITableViewCell
See sample UICatalog and read UITableView reference
Upvotes: 28