- ( , , ), "-" (.. drawRect) , "contentView" , . , , cell.backgroundView cell.selectedBackgroundView, ...
cell.backgroundView, cell.contentView, ( , , cell.selectedBackgroundView).
, , :
- Use cell.contentView to display a custom view without any preparation.
- Use cell.backgroundView and cell.selectedBackgroundView to show a fancy background for your cell ...
Or:
- Make your custom view flexible enough to display both the selected and unselected state, and use 2 instances of your custom view: one in cell.backgroundView and one in cell.selectedBackgroundView
source
share