Adding # & search sign to TableIndex in UITableView

Posted by sagar on Stack Overflow See other posts from Stack Overflow or by sagar
Published on 2010-05-03T12:10:07Z Indexed on 2010/05/03 12:38 UTC
Read the original article Hit count: 434

In iPhone native Phone book - there is a search character at the top & # character at the bottom.

I want to add both of that character in my table Index.

Currently I have implemented following code.

atoz=[[NSMutableArray alloc] init];

    for(int i=0;i<26;i++){
        [atoz addObject:[NSString stringWithFormat:@"%c",i+65]];
    }


- (NSArray *)sectionIndexTitlesForTableView:(UITableView *)tableView{
    return atoz;
}

How to have # character & search symbol in my UITableView?

Thanks in advance for sharing your knowledge.

Sagar

© Stack Overflow or respective owner

Related posts about uitableview

Related posts about iphone