in iOS 7 viewForHeaderInSection section is starting from 1 not from 0

前端 未结 2 981
名媛妹妹
名媛妹妹 2021-01-30 16:52

I am dealing with UITableView in my project and this project is created in Xcode 4.5 and now I am working with Xcode 5, so my question is when I will run my project

2条回答
  •  一整个雨季
    2021-01-30 17:20

    Swift 3 Version:

    override func tableView(_ tableView: UITableView, heightForHeaderInSection section: Int) -> CGFloat {
        return 60
    }
    

提交回复
热议问题