//获得索引内容
-(NSArray *)sectionIndexTitlesForTableView:(UITabelView *)tableView
{
NSMutableArray *indexArr = [NSMutableArr arrayWithCapacity:0];
for(int i = ‘A’; i <= ‘Z’ ; i++ )
{
[indexArr addObject:[NSString stringWithFormat:@“%c”,i]];
}
return indexer;
}
//索引的位置,点哪儿触发这个
-(NSInteger)tableView:(UITbaleView *)tableView sectionForSectionIndexTIitle:(NSString *)title atIndex:(NSInteger)index
{
return index;
}
-(NSArray *)sectionIndexTitlesForTableView:(UITabelView *)tableView
{
NSMutableArray *indexArr = [NSMutableArr arrayWithCapacity:0];
for(int i = ‘A’; i <= ‘Z’ ; i++ )
{
[indexArr addObject:[NSString stringWithFormat:@“%c”,i]];
}
return indexer;
}
//索引的位置,点哪儿触发这个
-(NSInteger)tableView:(UITbaleView *)tableView sectionForSectionIndexTIitle:(NSString *)title atIndex:(NSInteger)index
{
return index;
}