开发者

JSONRepresentation for NSMutableDictionary

开发者 https://www.devze.com 2023-03-29 13:39 出处:网络
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:

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.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消