1
foxling 2015-01-06 11:39:18 +08:00
[array valueForKeyPath:@"@distinctUnionOfArrays.@allKeys"];
|
2
foxling 2015-01-06 11:43:59 +08:00
不排重:unionOfArrays
|
3
lion9527 2015-01-06 11:44:24 +08:00
NSMutableArray *nameArr = [[NSMutableArray alloc] init];
for (NSDictionary *dic in array) { for (NSString *key in dic) { for (NSString *name in [dic objectForKey: key]) { [nameArr addObject: name]; } } } |
5
ashamp 2015-01-06 11:54:47 +08:00
NSString *name=[Array[index] objectForKey:@"name"];
不知道对不对,嘿嘿 |