Hi,
I'm a total beginner so please excuse if I totally phrase this wrong but I'm using 2 dictionaries. One is a main dictionary for storing the other dictionary that has 3 keys and objects. I'm trying to assign one of the objects of the inner dictionary to a a new key in the dictionary. though not sure how to call this dictionary and get the object. Here's my code:
NSMutableDictionary *dictionary = [NSMutableDictionary dictionary];
NSMutableDictionary *innerDictionary = [NSMutableDictionary dictionary];
NSNumber *value = [NSNumber numberWithInt:1]
[innerDictionary setObject:value forKey
"key1"];
[innerDictionary setObject:value forKey
"other2"];
[innerDictionary setObject:value forKey
"andThis3"];
[dictionary setObject:spinCompareDict forKey:value];
This is called when the function is called.
On the second call Im trying to grab the @"key1" and set it to @"andThis3" key though they are both nested in a disctionary with the key value which is set to 1. How could I do this?
Thank you if you can help.
I'm a total beginner so please excuse if I totally phrase this wrong but I'm using 2 dictionaries. One is a main dictionary for storing the other dictionary that has 3 keys and objects. I'm trying to assign one of the objects of the inner dictionary to a a new key in the dictionary. though not sure how to call this dictionary and get the object. Here's my code:
NSMutableDictionary *dictionary = [NSMutableDictionary dictionary];
NSMutableDictionary *innerDictionary = [NSMutableDictionary dictionary];
NSNumber *value = [NSNumber numberWithInt:1]
[innerDictionary setObject:value forKey
[innerDictionary setObject:value forKey
[innerDictionary setObject:value forKey
[dictionary setObject:spinCompareDict forKey:value];
This is called when the function is called.
On the second call Im trying to grab the @"key1" and set it to @"andThis3" key though they are both nested in a disctionary with the key value which is set to 1. How could I do this?
Thank you if you can help.