Iphone NSMutableDictionary的JSONRepresentation
我想在Iphone NSMutableDictionary的JSONRepresentation,iphone,json,nsmutabledictionary,Iphone,Json,Nsmutabledictionary,我想在NSMutableDictionary对象上调用JSONRepresentation方法。我使用[userDict JSONRepresentation]调用它,但我收到以下警告: NSMutableDictionary may not responsd to '-JSONRepresentation' 有谁能告诉我如何在NSMutableDictionary类型的对象上正确调用JSONRepresentation方法吗 提前感谢。JSONRepresentation方法来自。在您的项目
NSMutableDictionary
对象上调用JSONRepresentation
方法。我使用[userDict JSONRepresentation]调用它代码>,但我收到以下警告:
NSMutableDictionary may not responsd to '-JSONRepresentation'
有谁能告诉我如何在NSMutableDictionary
类型的对象上正确调用JSONRepresentation
方法吗
提前感谢。JSONRepresentation方法来自。在您的项目中包含该框架并导入正确的标题,您就可以开始了。嗨,查克拉达尔,恐怕您的问题很难理解,因为您忽略了重要的细节。您收到了什么警告?我收到的警告是“NSMUtableDictionary可能不响应'-JSONRepresentation'”对不起,忘记在我的文件中导入“NSObject+SBJSON.h”…不,它对我来说工作正常…谢谢..@Chakradhar如果这解决了您的问题,请单击左侧的复选标记将其标记为已接受。谢谢:)