NSMutableDictionary的JSONRepresentation

时间:2011-08-22 06:32:37

标签: iphone json nsmutabledictionary

我想在JSONRepresentation对象上调用NSMutableDictionary方法。我正在使用[userDict JSONRepresentation];来调用它,但我收到以下警告:

NSMutableDictionary may not responsd to '-JSONRepresentation'

有人可以告诉我如何在JSONRepresentation类型的对象上正确调用NSMutableDictionary方法吗?

提前致谢。

1 个答案:

答案 0 :(得分:7)

JSONRepresentation方法来自json-framework。在项目中包含该框架并导入正确的标题,您应该好好去。