Search
 
SCRIPT & CODE EXAMPLE
 

SWIFT

change background color of uitableview section header

func tableView(_ tableView: UITableView, willDisplayHeaderView view: UIView, forSection section: Int) {
    (view as! UITableViewHeaderFooterView).contentView.backgroundColor = UIColor.black.withAlphaComponent(0.4)
    (view as! UITableViewHeaderFooterView).textLabel?.textColor = UIColor.white
}
Comment

PREVIOUS NEXT
Code Example
Swift :: How to hide view in swiftui 
Swift :: swift screenshot 
Swift :: load image from url in Image swiftui (iOS 15) 
Swift :: concatenate string swift 
Swift :: white status bar swift 
Swift :: swift convert string to int 
Swift :: user defaults swift 
Swift :: swift programmatically set font 
Swift :: socket io swift 
Swift :: guard let swift 
Swift :: swift uilabel dynamic height based on text length 
Swift :: Swift Character Example 
Swift :: uitextfield set max length 
Swift :: get last element of array swift 
Swift :: string to array swift 
Swift :: Swift Named Tuples 
Swift :: Swift Use of Hash Function 
Swift :: swiftui tap gesture 
Swift :: Swift n Parameter with Default Values 
Swift :: Swift Tuple in Switch Statement 
Swift :: Swift Library Function 
Swift :: special symbol ios swift 
Swift :: swift view controller background image 
Swift :: Swift Benefits of Using Functions 
Swift :: Swift Syntax of Nested Function 
Swift :: swiftui orientation failed after change orientation popup 
Swift :: Adapt sfsymbol to frame swiftui 
Ruby :: how to get tables list in rails 
Ruby :: rspec check array without order 
Ruby :: rails migration rename column 
ADD CONTENT
Topic
Content
Source link
Name
2+8 =