NSDictionary to NSArray
suggest changeNSDictionary *myDictionary = [[NSDictionary alloc] initWithObjectsAndKeys:@"value1", @"key1", @"value2", @"key2", nil];
NSArray *copiedArray = myDictionary.copy;
Get keys:
NSArray *keys = [myDictionary allKeys];
Get values:
NSArray *values = [myDictionary allValues];
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents