override func tableView(tableView: UITableView!, viewForHeaderInSection section: Int) -> UIView! {
var customView:UIView?
customView.frame = // set frame according to tableview width and header height
customView.backgroundColor = UIColor.greenColor()
return customView
}
Hope this will help you.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…