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

后端 未结 6 1080
予麋鹿
予麋鹿 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 08:41

    An excellent resource on customizing UITableViews has been this post by Matt Gallagher. What you'll want to do is set the selectedBackgroundView to a new view (instead of nil) that is either transparent or a UIImageView.

提交回复
热议问题