PHP中文网2017-04-18 09:36:14
The height of tableview is less than self.view.height minus navigation minus tabbar. When subtracting the height of this footerView, add this footerView to self.view. y
值等于self.view.height - footerView.height
If there is a tabbar, subtract the height of tabbar. There is a footerView placed underneath, so just subtract the height of the footerView from the height of the tableView.
If the tableView is larger than this height, set the footerView to tableView.tableFooterView, and the height of the tableView remains unchanged.