所以我在带有数组的字典中有一个字典。我正在尝试添加到第二个字典中的数组。
[mealInfo setObject:[[NSMutableDictionary alloc]init] forKey:@"breakfast"];
[[mealInfo objectForKey:@"breakfast"] setObject:[[NSMutableArray alloc] init] forKey:@"name"];
[[mealInfo objectForKey:@"breakfast"] setObject:[[NSMutableArray alloc] init] forKey:@"detail"];
[[mealInfo objectForKey:@"breakfast"] setObject:[[NSMutableArray alloc] init] forKey:@"ndb"];
[[mealInfo objectForKey:@"breakfast"] setObject:[[NSMutableArray alloc] init] forKey:@"id"];
[[mealInfo objectForKey:@"breakfast"] setObject:[[NSMutableArray alloc] init] forKey:@"alias"];
创建似乎只是向数组添加多个元素是我最终遇到 SIGABRT 错误的地方
我像这样添加
[[[initMealInfo->mealInfo objectForKey:@"breakfast"] objectForKey:@"name"] addObject:[food_prop objectForKey:@"description"]];
我知道我做错了什么,并想知道任何帮助将不胜感激。