在iPhone中收到警告:NSString可能无法响应'-JSONValue' [英] Getting warning in iPhone: NSString may not respond to '-JSONValue'
本文介绍了在iPhone中收到警告:NSString可能无法响应'-JSONValue'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在我的iPhone应用程序中,我正在访问网络服务器以获取数据。
In my iPhone app, I am making an access to the webserver to fetch the data.
这里我使用JSON从数据库中检索数据。
Here I am using JSON to retrieve the data from database.
我收到一条警告说:
NSString可能无法响应'-JSONValue '
NSString may not respond to '-JSONValue'
如何解决?
推荐答案
在 .m
或<$ c的顶部添加此 #importJSON.h
$ c> .h file。
Add this #import "JSON.h"
at the top of your .m
or .h
file.
这篇关于在iPhone中收到警告:NSString可能无法响应'-JSONValue'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文