kindDic = [[NSMutableDictionary alloc]initWithCapacity:0]; for (char i = 'A'; i <= 'Z'; i ++) { NSMutableArray * arr = [[NSMutableArray alloc]init]; [kindDic setObject:arr forKey:[NSString stringWithFormat:@"%c",i]]; }
for (char i = 'A'; i <= 'Z'; i ++) { NSMutableArray * arra = [kindDic objectForKey:[NSString stringWithFormat:@"%c",i]]; [arra removeAllObjects]; }
for (int j = 0; j < arr.count; j ++) { NSString * ziMuStr = [self firstCharactor:arr[j]]; for (char i = 'A'; i <= 'Z'; i++) { NSString *ziM = [NSString stringWithFormat:@"%c",i]; if ([ziM isEqualToString:ziMuStr]) { NSMutableArray * arrar = [kindDic objectForKey:[NSString stringWithFormat:@"%c",i]]; [arrar addObject:arr[j]]; } } }
section的数量