【发布时间】:2018-06-15 09:15:18
【问题描述】:
我有一个 TableViewController 类:-
class SideMenuViewController: UITableViewController {
let tableViewFooter = UIView(frame: CGRect(x: 0, y: self.view.bounds.size.height + 80, width: self.view.bounds.width, height: 80))
tableViewFooter.backgroundColor = UIColor(patternImage: UIImage(named: "nav_drawer_footer.jpg")!)
tableView.tableFooterView = tableViewFooter
}
但是使用此代码..视图位于 tableView 的最后一个单元格下....我不想要这个。
我需要的是表格视图控制器底部的 ImageView / UIView
【问题讨论】:
-
在表格视图下方添加 UIImageView 或 UIView。它不必在里面。只需将 tableview 的底部约束到另一个视图的顶部
标签: ios swift uitableview uiimage