<分区>
标签 ios objective-c
<分区>
我正在尝试制作一个末尾有空白区域的表格 View ,以便用户可以向上滚动更多内容并更清晰地显示最后一个单元格。这可能吗?
最佳答案
答案是肯定的:tableFooterView
,但您永远不需要这样做。
以下是如何使用 tableFooterView
的示例:
CGRect frame = CGRectMake(0, 0, 320, 40);
UIView *view = [[UIView alloc] initWithFrame:frame];
// configure view as needed
self.tableView.tableFooterView = view;
您应该查看的是 contentInset
:
self.tableView.contentInset = UIEdgeInsetsMake(0.0, 0.0, 40.0, 0.0)];
希望对您有所帮助。
关于ios - 是否可以在表格 View 的末尾添加空格,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28247795/