1、你可能没有返回, - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView; 这个方法看看返回的是什么,如果没有返回,默认是没有header的,还有这个方法 - (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section 设置header高度的,这个可以不用 2、如果1已经设置了,那么打断点看看有没有进方法 - (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section 这个方法是用来设置header的, 3、如果1和2都没问题,给你段代码你放到方法 - (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section 去试试 UIView *view = [[UIView alloc] initWithFrame:CGRectMake(10, 0, tableView.bounds.size.width, tableView.sectionHeaderHeight)]; view.backgroundColor = [[UIColor alloc] initWithRed:227/255.f green:243/255.f blue:252/255.f alpha:1]; return view; 要是还不行的话,再考虑其他的问题吧!