NSArray* tableIndex;
- (NSArray *)sectionIndexTitlesForTableView:(UITableView *)tableView
{
return tableIndex;
}
- (NSString *)tableView:(UITableView *)tableView titleForHeaderInSection:(NSInteger)section{
switch (section) {
case 0:
return @"JPG";
break;
case 1:
return @"PDF";
break;
case 2:
return @"PNG";
break;
case 3:
return @"Excel";
break;
case 4:
return @"Word";
break;
case 5:
return @"Power Point";
break;
case 6:
return @"TIF";
break;
case 7:
return @"BMP";
break;
case 8:
return @"M4V";
break;
}
return nil;
}
沒有留言:
張貼留言