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

后端 未结 6 1075
予麋鹿
予麋鹿 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:02

    By far the easier method - in my opinion - to achieve this, is by setting the Table View attributes checkbox in the Interface Builder screen where it says "Show Selection on Touch". See the screenshot below:

    enter image description here

提交回复
热议问题