如何修复tableFooterView的位置

时间:2012-04-16 15:04:26

标签: ios uitableview

我有一个UITableViewController用户点击“编辑”按钮(已在tableHeaderView中),一旦他们处于编辑模式,tableFooterView就会显示“删除”按钮。

我的问题是页脚随桌子滚动。有什么方法可以使这个位置固定(或者可能采用不同的方式)?

1 个答案:

答案 0 :(得分:3)

创建两个UIView,并将UITableView放在上面一个:

+-------------------+
|  +-------------+  |
|  |             |  |
|  |             |  |
|  |    Table    |  |
|  |             |  |
|  |             |  |
|  |             |  |
|  +-------------+  |
|   regular view    |
+-------------------+
|      footer       |
+-------------------+
相关问题