Objective-C Language NSDictionary vers NSArray


Exemple

NSDictionary *myDictionary = [[NSDictionary alloc] initWithObjectsAndKeys:@"value1", @"key1", @"value2", @"key2", nil];  
NSArray *copiedArray = myDictionary.copy; 

Obtenir des clés:

NSArray *keys = [myDictionary allKeys];

Obtenir des valeurs:

NSArray *values = [myDictionary allValues];