Пожалуйста, измените ваш код на это и проверяйте только, что вы должны реализовать метод viewForHeaderInSection:
- (UIView *) tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section
{
NSString *cellValue = @"";
UIView *headerView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 320, 30)] ;
[headerView setBackgroundColor:[UIColor brownColor]];
UILabel *lblContent = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, headerView.frame.size.width, headerView.frame.size.height)];
cellValue = [[arrSections objectAtIndex:0] valueForKey:@"CategoryName"];
lblContent.text = cellValue;
[headerView addSubview:lblContent];
return headerView;
}