UITableViewDelegate methods not called after Swift 3.0 and Xcode 8 migration

前端 未结 3 1039
予麋鹿
予麋鹿 2021-01-19 09:10

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

3条回答
  •  一生所求
    2021-01-19 09:47

    You should set the height of the footer

     func tableView(_ tableView: UITableView, heightForFooterInSection section: Int) -> CGFloat {
        return 15
    }
    

提交回复
热议问题