Created
April 25, 2012 18:53
-
-
Save FlaviuSim/2492223 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// make the inner dictionaries (probably would use a for loop for this) | |
NSDictionary *dict1 = [[NSDictionary alloc] initWithObjectsAndKeys:@"value1", @"key", nil]; | |
NSDictionary *dict2 = [[NSDictionary alloc] initWithObjectsAndKeys:@"value2", @"key", nil]; | |
// put them in an array | |
NSArray *types = [[NSArray alloc] initWithObjects:dict1, dict2, nil]; | |
// now put the array in a dictionary | |
NSDictionary *finalDict = [[NSDictionary alloc] initWithObjectsAndKeys:types, @"types", nil]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment