美文网首页
Cell背景色,子控件颜色问题

Cell背景色,子控件颜色问题

作者: 三思的简书 | 来源:发表于2019-06-05 15:53 被阅读0次

在创建Cell时添加:

cell.selectionStyle = UITableViewCellSelectionStyleNone;

2.方法,但是点击时会有自带的灰色背景

tableView选中时背景颜色

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {

  [tableView deselectRowAtIndexPath:indexPath animated:NO];

}

cell 子控件颜色消失解决方法 

点击cell跳转时,cell中Label颜色消失解决方法

https://www.cnblogs.com/HFEL/p/9055246.html

相关文章

网友评论

      本文标题:Cell背景色,子控件颜色问题

      本文链接:https://www.haomeiwen.com/subject/hmcsxctx.html