Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/iphone/45.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Iphone NSMutableDictionary的JSONRepresentation_Iphone_Json_Nsmutabledictionary - Fatal编程技术网

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如果这解决了您的问题,请单击左侧的复选标记将其标记为已接受。谢谢:)