Home > Net >  Highlight a subview in iOS when selecting a TableViewCell
Highlight a subview in iOS when selecting a TableViewCell

Time:08-25

The issue I'm referring to is present in this sample app: enter image description here

CodePudding user response:

Set backgroundColor = .clear for the views that should highlight. In the particular example they are the UIImageView and the UICollectionView.

Also the UIImageView has a highlightedImage property, so it's possible to provide an alternative image which appears when the UICollectionViewCell is selected.

  • Related