[英]JSONRepresentation for NSMutableDictionary
I want to call the JSONRepresentation
method on an NSMutableDictionary
object. 我想在NSMutableDictionary
对象上调用JSONRepresentation
方法。 I'm calling it using [userDict JSONRepresentation];
我用[userDict JSONRepresentation];
调用它[userDict JSONRepresentation];
, but I am getting the following warning: ,但我收到以下警告:
NSMutableDictionary may not responsd to '-JSONRepresentation'
Could anyone tell me how to I can properly call the JSONRepresentation
method on an object of the NSMutableDictionary
type? 谁能告诉我如何在NSMutableDictionary
类型的对象上正确调用JSONRepresentation
方法?
Thanks in advance. 提前致谢。
The JSONRepresentation
method comes from json-framework . JSONRepresentation
方法来自json-framework 。 Include that framework in your project and import the correct headers, and you should be good to go. 在项目中包含该框架并导入正确的标题,您应该很高兴。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.