Why does UITableViewCell remain highlighted?

前端 未结 18 1269
余生分开走
余生分开走 2020-12-12 12:45

What would cause a table view cell to remain highlighted after being touched? I click the cell and can see it stays highlighted as a detail view is pushed. Once the detail

18条回答
  •  执念已碎
    2020-12-12 13:11

    If you are using a UITableViewCell, then comment the following line

    - (void)setSelected:(BOOL)selected animated:(BOOL)animated
    {
    
     // [super setSelected:selected animated:animated];
    
    }
    

    Hope this helps.

提交回复
热议问题