iPhone:获取警告:NSString可能不响应'-JSONValue' [英] iPhone: Getting Warning : NSString may not respond to '-JSONValue'
本文介绍了iPhone:获取警告:NSString可能不响应'-JSONValue'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在我的iPhone应用程式中,我可以存取网页伺服器来撷取资料。
这里我使用JSON从资料库中撷取资料。 p>
我收到一条警告,表示:
NSString可能不会响应-JSONValue strong>
如何解决?
请帮助&建议
感谢
解决方案
在 .m
或 .h
顶部的#importJSON.h文件。
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 it?
Please Help & Suggest
Thanks
解决方案
Add this #import "JSON.h"
at the top of your .m
or .h
file.
这篇关于iPhone:获取警告:NSString可能不响应'-JSONValue'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文