Answers for "UItableview cell selection background color swift5"

1

change selection color uitableviewcell swift

override func setSelected(_ selected: Bool, animated: Bool) {
     super.setSelected(selected, animated: animated)

     if selected {
         contentView.backgroundColor = UIColor.green
     } else {
         contentView.backgroundColor = UIColor.blue
     }
 }
Posted by: Guest on July-27-2020

Code answers related to "UItableview cell selection background color swift5"

Code answers related to "Swift"

Browse Popular Code Answers by Language