How can I make the footerview always stay at the bottom in UITableViewController?

前端 未结 4 1980
日久生厌
日久生厌 2021-02-13 20:56

I am using a UITableviewcontroller and I want the footer view to always stay at the bottom of the screen. However, the y

4条回答
  •  既然无缘
    2021-02-13 21:05

    The tableview footer view would always stay at the bottom of the tableview and would always scroll with it. If you need to make the footer view fixed at the bottom then you can not use a TableViewController.You will have to use UIViewController , put your tableView as a subview. Put the footer also as another subview and its done.

提交回复
热议问题