NSMutableDictionary的JSONRepresentation [英] JSONRepresentation for NSMutableDictionary

查看:120
本文介绍了NSMutableDictionary的JSONRepresentation的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在NSMutableDictionary对象上调用JSONRepresentation方法.我使用[userDict JSONRepresentation];调用它,但收到以下警告:

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'

有人可以告诉我如何正确调用NSMutableDictionary类型的对象上的JSONRepresentation方法吗?

Could anyone tell me how to I can properly call the JSONRepresentation method on an object of the NSMutableDictionary type?

谢谢.

推荐答案

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.

这篇关于NSMutableDictionary的JSONRepresentation的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆