iphone indexed table view problem

Posted by steveY on Stack Overflow See other posts from Stack Overflow or by steveY
Published on 2009-06-30T17:07:03Z Indexed on 2010/04/28 2:33 UTC
Read the original article Hit count: 255

Filed under:
|
|

I have a table view in which I'm using sectionIndexTitlesForTableView to display an index. However, when I scroll the table, the index scrolls with it. This also results in very slow refreshing of the table. Is there something obvious I could be doing wrong? I want the index to remain in place on the right while the table scrolls. This is the code I'm using for the index titles:

- (NSArray *)sectionIndexTitlesForTableView:(UITableView *)tableView {
    NSMutableArray *tempArray = [[NSMutableArray alloc] init];
    [tempArray addObject:@"A"];
    [tempArray addObject:@"B"];
    [tempArray addObject:@"C"];
    [tempArray addObject:@"D"];
...

    return tempArray; 
}

© Stack Overflow or respective owner

Related posts about iphone

Related posts about uitableview