在創(chuàng)建Cell時添加:
cell.selectionStyle = UITableViewCellSelectionStyleNone;
2.方法,但是點擊時會有自帶的灰色背景
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
? [tableView deselectRowAtIndexPath:indexPath animated:NO];
}
cell 子控件顏色消失解決方法?
點擊cell跳轉(zhuǎn)時,cell中Label顏色消失解決方法
https://www.cnblogs.com/HFEL/p/9055246.html