美文网首页
UITableViewStyleGrouped

UITableViewStyleGrouped

作者: a2ebcc3676c1 | 来源:发表于2019-02-26 15:27 被阅读0次

UITableViewstyleUITableViewStyleGrouped时,如何设置 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)];


相关文章

网友评论

      本文标题:UITableViewStyleGrouped

      本文链接:https://www.haomeiwen.com/subject/qhwayqtx.html