cell 能够响应 select,但是选中后的颜色又不发生改变的方法

设置 cell.selectionStyle = UITableViewCellSelectionStyleNone;

  1. - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath  
  2. {  
  3.     //cell被选中后的颜色不变  
  4.     cell.selectionStyle = UITableViewCellSelectionStyleNone;  

 

原文地址:https://www.cnblogs.com/easonoutlook/p/2677187.html