如图:
UITableView的section header view悬停和取消的方法
代码
//section 组头
func tableView(tableView: UITableView, viewForHeaderInSection section: Int) -> UIView? {
if section == 0 {
let label = UILabel.init(frame: CGRectMake(0, 0, 10, 50))
label.text = "section 0 header"
label.backgroundColor = UIColor.brownColor()
return label
}else{
let label = UILabel.i