UITableView tableFooterView shows at the top of the UITableView - wrong

前端 未结 7 2311
北海茫月
北海茫月 2021-02-08 15:37

I have created a very simple test case to reproduce this issue.

I am trying to set a footer view programmatically to a tableview. Please note that I am referring to the

7条回答
  •  再見小時候
    2021-02-08 16:14

    The table view is ignoring the constraints.
    Set the height manually and it'll work:

    tableView.tableFooterView?.frame.size.height = 20
    

提交回复
热议问题