In my willDisplayHeaderView, I changed the color of the section title. But I want to add an image before the section title. Any help? My code for willDisplayHeaderView
func tableView(tableView: UITableView, willDisplayHeaderView view: UIView, forSection section: Int) { let header: UITableViewHeaderFooterView = view as UITableViewHeaderFooterView header.contentView.backgroundColor = UIColor(red: 238/255, green: 168/255, blue: 15/255, alpha: 0.8) header.textLabel.textColor = UIColor.whiteColor() header.alpha = 1 }
ios uitableview swift
Saqib omer
source share