// tableView的头部脚部区域
// 头 (只有高度起作用)
UIView *header = [[UIView alloc]initWithFrame:CGRectMake(100, 100, 100, 100)];
header.backgroundColor = [UIColor redColor];
tableView.tableHeaderView = header;
// 脚(x值和高度起作用)
UIView *foot = [[UIView alloc]initWithFrame:CGRectMake(0, 100, 100, 100)];
foot.backgroundColor  = [UIColor yellowColor];
tableView.tableFooterView = foot;

iOS-UI-tableView的头部脚部区域