Objective-C Language NSDictionary to NSArray


Example

NSDictionary *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];