search

Home  >  Q&A  >  body text

ios - tableivew中tableFootView 在tableview 的contentsize不足一页时常驻底部。

迷茫迷茫2772 days ago777

reply all(1)I'll reply

  • PHP中文网

    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.heightIf 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.

    reply
    0
  • Cancelreply