iOS*_*Dev -5 iphone objective-c nsmutablearray nsmutabledictionary ios
如何将NSMutableDictionary的内容导入NSMutable数组?
我正在尝试跟随但它的崩溃
for(int i=0; i< [dict count] ; i++){
[array_listToDisplay addObject:[dict objectAtIndex:i] objectForKey:@"NAMES"];
}
Run Code Online (Sandbox Code Playgroud)
请帮忙
你想要字典的键还是字典的值?
NSMutableArray *keys = [NSMutableArray arrayWithArray:[dict allKeys]];
NSMutableArray *values = [NSMutableArray arrayWithArray:[dict allValues]];
Run Code Online (Sandbox Code Playgroud)