我对 NSDictionary 非常缺乏经验。我有这个数据结构:
{"aps":
{"alert":null},
"custom_control":
{"type":"topic_comment",
"object":
{"topic_id":"1","topic_section":"2","plan_id":"3","user_id":"4"}
}
}
通过执行以下操作,我可以潜在地获得“aps”值:
NSString *aps = [dictionary objectForKey:@"aps"];
但是由于 aps 包含一个项目数组,我应该使用什么数据结构来代替 NSString?以及如何获取 custom_control 的值和“对象”中的值
谢谢!