如何在Objective-C中访问NSMutableDictionary的值?

时间:2013-05-24 11:52:02

标签: objective-c nsmutablearray nsmutabledictionary

这是我的代码

NSMutableArray *responseArray = [responseString objectFromJSONString];

我想这样做以获取价值:

NSMutableDictionary *responseDict = [responseArray objectAtIndex:<#(NSUInteger)#>];

我想将NSMutalbeArray添加到Dict变量,如何执行此操作请帮助我

这是responseArray

response >>>>>>>>> succ [{"id":"1","name":"Guitars \/

 Basses","description":"","image":"","parent_category":null},{"id":"2","name":"Keyboards \/ 

 Modules","description":"","image":"","parent_category":null},{"id" . . . . .  }]

如何获取字典值?

1 个答案:

答案 0 :(得分:0)

首先检查http://jsonlint.com/上的json回复。 无效