1

隐藏 UITableView 下不需要的分割线

 1 year ago
source link: https://fann.im/blog/2012/05/23/hide-extra-separators-bellow-uitableview/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

隐藏 UITableView 下不需要的分割线

May 23, 2012

UITableViewStylePlain 样式下的 UITableView 如果显示分割线,就会在 tableView 下显示额外的空白 cell 和分割线。在 SO 上发现一个小技巧来解决这个问题 Eliminate Extra separators below UITableView - in iphone sdk?

UIView *v = [[UIView alloc] initWithFrame:CGRectMake(0, 0, self.tableView.width, 1)];
v.backgroundColor = [UIColor whiteColor];
[self.tableView setTableFooterView:v];

Was this page helpful?


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK