如何防止内容在 UITableView 的页脚后面滚动

How to I prevent content from scrolling behind footer of UITableView

现在已经为这个问题苦苦挣扎了一段时间:\让我解释一下......首先这是一张给我带来问题的 UITableViewController 的图片:

UITableViewController 有 3 个动态单元格

  1. header - 绿线以上的所有内容
  2. 主要单元格 - 所有内容 b/w 绿线和红线
  3. 页脚单元格 - 红线下方

我对 header 和重复单元格没有问题。我的问题是页脚单元格...womp womp。当我在主要内容上滚动时 -(即绿线和红线之间的区域)内容隐藏在页脚后面。

这是我滚动时的图片 - 请注意底部的两个链接(关于 BVB 和设置已消失)

最后是我的页脚功能:

 override func tableView(tableView: UITableView, viewForFooterInSection section: Int) -> UIView? {
    let  footerCell = tableView.dequeueReusableCellWithIdentifier("MenuFooterCell") as! MenuFooterViewCell
    self.tableView.tableFooterView = footerCell
    return footerCell
}

我该怎么做才能解决这个问题?? 非常感谢提前的帮助:) 如果你给我一个好的答案,我一定会标记为正确的! -亚历克斯

如果您不想让单元格隐藏在页脚后面: 使您的 FooterView 成为 tableView 中的另一个单元格。

其他:

override func tableView(tableView: UITableView, viewForFooterInSection section: Int) -> UIView? {
    return UIView(frame: CGRectZero)
}