For iOS 8., 7. and iOS 6.1
The easiest method is to set the tableFooterView property:
- (void)viewDidLoad
{
[super viewDidLoad];
// This will remove extra separators from tableview
self.tableView.tableFooterView = [[UIView alloc] initWithFrame:CGRectZero];
}
Or using Storyboard, drag a View to the bottom of the Table View to create a tableFooterView. Set the frame of the tableFooterView to have a height of 0.
The easiest method is to set the tableFooterView property:
- (void)viewDidLoad
{
[super viewDidLoad];
// This will remove extra separators from tableview
self.tableView.tableFooterView = [[UIView alloc] initWithFrame:CGRectZero];
}
Or using Storyboard, drag a View to the bottom of the Table View to create a tableFooterView. Set the frame of the tableFooterView to have a height of 0.
本文介绍了一种简单的方法来移除iOS应用中UITableView底部多余的分隔线,适用于iOS 8及更低版本。通过设置tableFooterView属性为高度为0的UIView,可以有效地隐藏这些不必要的分隔线,提升用户体验。
2742

被折叠的 条评论
为什么被折叠?



