解决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;
原文地址:https://www.cnblogs.com/cfl911014/p/7325666.html