开发者

Getting warning in iPhone: NSString may not respond to '-JSONValue'

开发者 https://www.devze.com 2023-02-04 08:14 出处:网络
In my iPhone app, I am making an access to the webserver to fetch the data. Here I am using JSON to retrieve the data from database.

In my iPhone app, I am making an access to the webserver to fetch the data.

Here I am using JSON to retrieve the data from database.

I get a warning that says:

NSString may not respond to '-JSONValue'

How to resolve开发者_Python百科 it?


Add this #import "JSON.h" at the top of your .m or .h file.


Have you tried to add JSON Library to your project and import it

#import "JSON/JSON.h"


You probably just miss the include to your JSON library

0

精彩评论

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