NSMutableDictionary 的 JSONRepresentation
我想在 NSMutableDictionary
对象上调用 JSONRepresentation
方法。我使用 [userDict JSONRepresentation];
调用它,但收到以下警告:
NSMutableDictionary may not responsd to '-JSONRepresentation'
谁能告诉我如何正确调用对象上的 JSONRepresentation
方法NSMutableDictionary
类型?
提前致谢。
I want to call the JSONRepresentation
method on an NSMutableDictionary
object. I'm calling it using [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?
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
JSONRepresentation
方法来自 json-framework。将该框架包含在您的项目中并导入正确的标头,您就可以开始了。The
JSONRepresentation
method comes from json-framework. Include that framework in your project and import the correct headers, and you should be good to go.