Answers for "change uitableview background color swift"

0

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
}
Posted by: Guest on December-08-2020
0

swiftui tabview background color

Code Block    init() {      UITabBar.appearance().barTintColor = UIColor(Color(colorExtraLight)) // custom color.   }
Posted by: Guest on May-26-2021

Code answers related to "change uitableview background color swift"

Code answers related to "Swift"

Browse Popular Code Answers by Language