After migrating my codebase from Swift 2.2 to Swift 3.0, I noticed that my UITableView
footer did not show up. It turns out that none of my UITableViewDe
In Xcode8, or latest Swift version, the method signature has been changed. This change might be causing your code to not call delegate method.
Fix it by writing method again using autocomplete.
Old Method -
func tableView(tableView: UITableView, heightForHeaderInSection section: Int) -> CGFloat? {
return 50.0
}
New Method -
func tableView(tableView: UITableView, heightForHeaderInSection section: Int) -> CGFloat {
return 50.0
}
heightForHeaderInSection has to be used while using viewForHeaderInSection.
Hope this helped.