如何在swift中更改tableView部分的文本颜色

如何在swift中更改TableView中的文本颜色。

viewForHeaderInSection

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 } 

希望这会帮助你。