Loop through NSDictionary to create separate NSArrays

后端 未结 3 424
没有蜡笔的小新
没有蜡笔的小新 2021-02-05 18:20

I have a large NSDictionary that I need to loop through and create separate NSArrays. Here are the contents:

(
        {
        id =          


        
3条回答
  •  遥遥无期
    2021-02-05 18:55

    NSString *key;
    for(key in someDictionary){
         NSLog(@"Key: %@, Value %@", key, [someDictionary objectForKey: key]);
    }
    

提交回复
热议问题