UILocalizedIndexedCollation on a UITableView

Discussion in 'iOS Development' started by andydam123, Aug 22, 2010.

  1. andydam123

    andydam123 Member

    Joined:
    Aug 11, 2008
    Messages:
    447
    Likes Received:
    0
    Whenever I use UILocalizedIndexedCollation on a UITableView that uses the UITableViewStyleGrouped style, it ends up having empty spaces. Fix?

    Here's the code for the section titles.

    Code:
    - (NSString *)tableView:(UITableView *)tableView titleForHeaderInSection:(NSInteger)section {
        return [[sectionedListContent objectAtIndex:section] count] ? [[[UILocalizedIndexedCollation currentCollation] sectionTitles] objectAtIndex:section] : nil;
    }

Share This Page