如何让footerview始终位于UITableViewController的底部? [英] How can I make the footerview always stay at the bottom in UITableViewController?
问题描述
我正在使用 UITableviewcontroller
,我希望页脚视图始终保持在屏幕的底部 。但是,页脚视图的 y
位置正在根据 height
更改 tableviewcell
。如何始终将其粘贴在屏幕底部?
I am using a UITableviewcontroller
and I want the footer view to always stay at the bottom of the screen. However, the y
position of the footer view is changing as per the height
of the tableviewcell
. How can I always make it stick to the bottom of the screen?
推荐答案
tableview
页脚视图将始终位于 tableview
的底部,并始终使用它滚动。如果您需要将页脚视图固定在底部,那么您不能使用 TableViewController
。您将不得不使用 UIViewController
,将 tableView
作为子视图。将页脚也作为另一个子视图并完成。
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.
这篇关于如何让footerview始终位于UITableViewController的底部?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!