如果只是指定每个section的title,只需要tableView的dataSource的实现下面的方法来返回每个section的title
- (NSString *)tableView:(UITableView *)tableView titleForHeaderInSection:(NSInteger)section
-(UIView *) tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section
是用来自定义每个section的headView