【发布时间】:2015-06-24 05:07:01
【问题描述】:
默认情况下,分组表视图的每个部分都有保留的垂直边距。我不想要表格视图的页眉视图而是页脚视图,那么如何轻松降低边距?
【问题讨论】:
标签: uitableview margin appdelegate
默认情况下,分组表视图的每个部分都有保留的垂直边距。我不想要表格视图的页眉视图而是页脚视图,那么如何轻松降低边距?
【问题讨论】:
标签: uitableview margin appdelegate
重写下面tableview的delegate方法,直接去掉header view的margin。
- (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section
{
return 0.01; // Removed the section header margin. (couldn't be 0 here, weird)
}
【讨论】: