views:

183

answers:

1

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?

A: 

You should use selectRowAtIndexPath:animated:scrollPosition: instead selected property for UITableViewCell

See sample UICatalog and read UITableView reference

Victor