我想在 NSMutableDictionary
对象上调用 JSONRepresentation
方法。我使用 [userDict JSONRepresentation];
调用它,但收到以下警告:
NSMutableDictionary may not responsd to '-JSONRepresentation'
谁能告诉我如何在 NSMutableDictionary
类型的对象上正确调用 JSONRepresentation
方法?
提前致谢。
最佳答案
JSONRepresentation
方法来自 json-framework 。将该框架包含在您的项目中并导入正确的 header ,您就可以开始了。
关于iphone - NSMutableDictionary 的 JSONRepresentation,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7143863/