self.tableView.estimatedRowHeight = 0;//预估行高
self.tableView.estimatedSectionHeaderHeight = 0;
self.tableView.estimatedSectionFooterHeight = 0;
self.tableView.separatorStyle = UITableViewCellSeparatorStyleNone;隐藏分割线
- (CGFloat)tableView:(UITableView *)tableView heightForFooterInSection:(NSInteger)section {
return CGFLOAT_MIN;
}
博客主要围绕iOS开发中UITableView的设置展开,包括设置预估行高、预估分区头和尾高度为0,隐藏分割线,还给出了设置分区尾高度为最小值的代码示例。
190

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



