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

2019-06-05  本文已影响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

上一篇 下一篇

猜你喜欢

热点阅读