I'am trying to change the color under the UITableViewController's cells but I can't do it. (gray section on screenshot after the swipe down of table)
I tried with:
self.tableView.backgroundColor = UIColor.red
and:
self.tableView.tableFooterView?.backgroundColor = UIColor.red
I don't find any options on storyboard Could you help me?
you have to set tableview background view first to change tableview backgroundcolor.
let view = UIView()
view.frame = self.tableView.frame
view.backgroundColor = UIColor.red
self.tableView.backgroundView = view
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.