How to specify number of headers in section UITableView.

Posted by Mr. McPepperNuts on Stack Overflow See other posts from Stack Overflow or by Mr. McPepperNuts
Published on 2010-06-11T14:59:03Z Indexed on 2010/06/11 15:02 UTC
Read the original article Hit count: 222

Filed under:
|
if ([tempArray containsObject: [sectionInfo indexTitle]])
{       
    return nil;
}else
{
    [tempArray addObject: [sectionInfo indexTitle]];
    return [sectionInfo indexTitle];

}
return [sectionInfo indexTitle];

The code above groups the cells in alphabetical order but displays a blank header instead of the appropriate title. Could this possibly be because I did not specify the number of headers? This would naturally be a single header for every letter in the alphabet.

© Stack Overflow or respective owner

Related posts about iphone

Related posts about objective-c