当
UITableView
的style
为UITableViewStyleGrouped
时,如何设置section
之间的间距?
- 每个section都有 header 和 footer
_tableView.sectionHeaderHeight = 10;
_tableView.sectionFooterHeight = 10;
// section之间的间距 = 10 + 10
-
tableView
的顶部有间距
_tableView.tableHeaderView = [[UIView alloc]initWithFrame:CGRectMake(0,0,_tableView.bounds.size.width,0.01)];
网友评论