我设置:
cell.selectionStyle = UITableViewCellSelectionStyleGray;
并使用代码突出显示一行:
NSIndexPath *indexPath = [NSIndexPath indexPathForRow:0 inSection: 0];
[self.tableView selectRowAtIndexPath:indexPath animated:NO scrollPosition:UITableViewScrollPositionNone
即使我设置为灰色,突出显示颜色也始终为蓝色。如果我设置:
cell.selectionStyle = UITableViewCellSelectionStyleNone;
它工作正常,没有亮点。但只是不适用于:
cell.selectionStyle = UITableViewCellSelectionStyleGray;
它只显示蓝色而不是灰色。任何想法?谢谢。