Search
 
SCRIPT & CODE EXAMPLE
 

SWIFT

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
     }
 }
Comment

PREVIOUS NEXT
Code Example
Swift :: swiftui delay 
Swift :: uicollectionview detect scroll swift 
Swift :: swiftui navigation link with button 
Swift :: swift temporary directory 
Swift :: swift bring something to front of view 
Swift :: firestore subcollection swift 
Swift :: swift wait 5 seconds 
Swift :: save codable in userdefaults ios swift 
Swift :: remove back button text nav bar swift 
Swift :: swift rounded tab bar 
Swift :: swift date plus1 day 
Swift :: pop last element array swift 
Swift :: swift setinterval 
Swift :: link swiftui 
Swift :: porsche 
Swift :: closure swift 
Swift :: loop backwards swift 
Swift :: rxswift combine two observables 
Swift :: swft image 
Swift :: sf symbols 
Swift :: how to get the path of selected PDF/doc from file manager in ios swift programmatically 
Swift :: response.result.value alamofire 5 
Swift :: uitextfield get focus swift 5 
Swift :: swift create custom button with icon programmatically 
Swift :: Optional & Default Parameter Swift 
Swift :: Type Constraints Swift 
Swift :: UIApplicationWillEnterForeground 
Swift :: Swift convenience Initializer 
Swift :: get character at specifiic location swift 
Swift :: change button image tint color swift 
ADD CONTENT
Topic
Content
Source link
Name
5+3 =