section header height must not be negative

CGRect frame = self.tableView.tableHeaderView.frame;

    frame.size.height = 1;

    UIView *headerView = [[UIView alloc] initWithFrame:frame];

    [self.tableView setTableHeaderView:headerView];



_tableView.estimatedSectionHeaderHeight = 0;


      _tableView.estimatedSectionFooterHeight = 0;

        _tableView.tableHeaderView.height = 0;

你可能感兴趣的:(section header height must not be negative)