In my willDisplayHeaderView I have changed color of section header But I want to add an image before section title. Any help? My code for willDisplayHeaderView is
I use this method below in my proj.
override func tableView(tableView: UITableView, viewForHeaderInSection section: Int) -> UIView?
{
let uilbl = UILabel()
//uilbl.numberOfLines = 0
//uilbl.lineBreakMode = NSLineBreakMode.ByWordWrapping
//uilbl.text = "blablabla"
uilbl.sizeToFit()
uilbl.backgroundColor = UIColor(patternImage: UIImage(named: "yr-img-name")!)
return uilbl
}