UITableViewCell: How to prevent blue selection background w/o borking isSelected property?

后端 未结 6 1084
予麋鹿
予麋鹿 2020-12-04 08:03

I have a custom UITableViewCell subclass. I have set the contentView of my cell subclass to a custom UIView class in which i am overr

6条回答
  •  情话喂你
    2020-12-04 09:01

    What has worked for me in the past is just putting:

    - (void)setSelected:(BOOL)selected animated:(BOOL)animated { }
    

    In my UITableViewCell subclasses (because it won't call super and make itself highlighted). Hope this is what you were looking for.

提交回复
热议问题