【问题标题】:IOS Swift, show textfield at the bottom of tableIOS Swift,在表格底部显示文本字段
【发布时间】:2015-11-21 04:33:44
【问题描述】:

我正在做聊天屏幕,因为我想在表格底部添加我的文本字段。 我使用了表格的页脚,但问题是如果表格高度小于页脚,则屏幕底部不会出现页脚。如下所示。

【问题讨论】:

    标签: ios swift swift2


    【解决方案1】:

    为什么要使用表格视图的页脚?有什么具体原因吗?

    处理此问题的最佳方法是在故事板中使用 UITableViewController,并将其作为容器视图嵌入到 UIViewController 中。然后你可以使用自动布局来设置页脚和包含 UITableView 的容器视图之间的关系。

    原答案:

    tableFooterView property doesn't fix the footer at the bottom of the table view

    UITableView, make footer stay at bottom of screen?

    【讨论】:

      猜你喜欢
      • 2015-08-20
      • 1970-01-01
      • 2011-03-08
      • 1970-01-01
      • 1970-01-01
      • 2020-05-24
      • 2014-12-27
      • 2017-11-07
      • 1970-01-01
      相关资源
      最近更新 更多