我想在不选择 cell
的情况下显示 UITableViewCell
选择样式“灰色”。我怎样才能做到这一点?但我只想在 UITableView
的第一行显示它。有什么建议吗?
最佳答案
if (indexPath.row == 0)
cell.backgroundColor = [UIColor greyColor];
放入:
-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
}
关于ios - 显示 UItableViewcell 选择,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27292721/