How to store an NSArray in an NSDictionary?
问题 I'm trying to teach myself but am struggling with how to store something like an NSArray inside an NSDictionary. Let's say hypothetically you had a NSDictionary for recipes: Let's say the NSDictionary had keys like: Spaghetti, Fettucine Alfredo, Grilled Chicken Salad And the NSDictionary had an NSArray which was simply a list of ingredients. I suppose the equivalent PHP code would be something like: $['Spaghetti'] = array('Spaghetti Pasta', 'Spaghetti Sauce', 'Meatballs'); $['Fettucine