使用故事板将页脚添加到 UITableViewController
Add footer to UITableViewController using storyboard
所以我尝试在 table 中添加一个页脚。下面是我所做的,但视图不会转到应用程序的底部,相反,它将保留在最后一个 TableCell 下。那么我怎样才能让它成为我页面的页脚呢?
对于tableView 中的Footer 只需在UITableViewCell
之后拖一个UIView。
对于 Header,将 UIView
拖放到 header 部分。
TableView
默认将其作为 header 视图和页脚
在委托方法中将 IBoutlet 连接到视图和 return 视图。
-(UIView *)tableView:(UITableView *)tableView viewForFooterInSection:(NSInteger)section{
return yourView;
}
所以我尝试在 table 中添加一个页脚。下面是我所做的,但视图不会转到应用程序的底部,相反,它将保留在最后一个 TableCell 下。那么我怎样才能让它成为我页面的页脚呢?
对于tableView 中的Footer 只需在UITableViewCell
之后拖一个UIView。
对于 Header,将 UIView
拖放到 header 部分。
TableView
默认将其作为 header 视图和页脚
在委托方法中将 IBoutlet 连接到视图和 return 视图。
-(UIView *)tableView:(UITableView *)tableView viewForFooterInSection:(NSInteger)section{
return yourView;
}