如何让footerview始终位于UITableViewController的底部? [英] How can I make the footerview always stay at the bottom in UITableViewController?

查看:1157
本文介绍了如何让footerview始终位于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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆