NSDictionary to NSArray

suggest change

copy on a dictionary returns another dictionary, not an array. Use allKeys and allValues.

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

Get keys:

NSArray *keys = [myDictionary allKeys];

Get values:

NSArray *values = [myDictionary allValues];

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents