Why does UITableViewCell remain highlighted?

前端 未结 18 1295
余生分开走
余生分开走 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:09

    Use this method in UITableViewCell class

    - (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    
       // Just comment This line of code
       // [super setSelected:selected animated:animated];        
    }
    

提交回复
热议问题