I have installed:
cell.selectionStyle = UITableViewCellSelectionStyleGray;
and use the code to highlight the line:
NSIndexPath *indexPath = [NSIndexPath indexPathForRow:0 inSection: 0]; [self.tableView selectRowAtIndexPath:indexPath animated:NO scrollPosition:UITableViewScrollPositionNone
The backlight color is always blue, even I'm set to gray. If I installed:
cell.selectionStyle = UITableViewCellSelectionStyleNone;
It works great and does not stand out. But just don't work with:
cell.selectionStyle = UITableViewCellSelectionStyleGray;
It just shows blue instead of gray. Any ideas? Thank.
ios objective-c
user2543991 Aug 02 '13 at 14:46 2013-08-02 14:46
source share