解决UITableview 底部留白

  1. 视图中有多个滚动时候 self.automaticallyAdjustsScrollViewInsets = NO;
  2. UITableViewStyleGrouped 防止留白
    self.tableView_root.tableHeaderView = [[UIView alloc]initWithFrame:CGRectMake(0, 0, 1, 0.5)];
    self.tableView_root.sectionFooterHeight = 0.5;
    self.tableView_root.tableFooterView = [[UIView alloc]initWithFrame:CGRectMake(0, 0, 1, 0.5)];
    self.tableView_root.sectionFooterHeight = 0.5;

posted on 2017-08-09 15:39  崔付亮  阅读(401)  评论(0编辑  收藏  举报