I\'m trying to store data in the following fashion with a string as the key and I would like an array as the value.
key objects
\"letters\"
Assuming you have an NSArray called letters and one called numbers containing the correct values:
NSDictionary* dict = [NSDictionary dictionaryWithObjectsAndKeys:
letters, @"letters",
numbers, @"numbers",
nil
];
Make sure to retain if you want to keep dict around, or alternatively use alloc and initWithObjectsAndKeys.
See NSDictionary API reference for more details.