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
Simply Add the following code in your viewDidLoad() method.
viewDidLoad()
var frame = CGRectMake(0, 0, self.view.frame.size.width, 200) var headerImageView = UIImageView(frame: frame) var image: UIImage = UIImage(named: "yourImage")! headerImageView.image = image youTableView.tableHeaderView = headerImageView