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?
You should use selectRowAtIndexPath:animated:scrollPosition:
instead of the selected property for UITableViewCell
See sample UICatalog and read UITableView reference
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With