Answers for "uitableviewcell selected background color swift 4"

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 "uitableviewcell selected background color swift 4"

Code answers related to "Swift"

Browse Popular Code Answers by Language