我的NSXMLParser没有解析并返回null [英] My NSXMLParser is not parsing and returning null
问题描述
我在其他视图控制器的按钮单击中解析了我的xml,但现在我已将其更改为app delegate类(我的应用程序是通用应用程序)。所以,一旦我启动我的应用程序是应该解析all.My解析方法写在另一个ViewController,我从我的appDelegate类调用这些方法,但它返回给我: -
I was parsing my xml in some other view controller's button click but now i have changed it to the app delegate class (My app is a Universal app). so that as soon as i start my app is should parse all.My parsing methods are written in another ViewController and i am calling those methods from my appDelegate class, but it is returning me this :-
NSXMLParser ERROR: The operation couldn’t be completed. (NSXMLParserErrorDomain error 65.) - (null)
不知道我现在做了什么。任何帮助都会很明显。
dont know what i have done now. any help will be appreciable.
推荐答案
实际上因为它是一个域错误。 ..它是不在你身边。您必须检查您的互联网或代理设置。我希望你的网络必须在模拟器上工作,但不能在你的应用程序中....:)
Actually as it is a Domain error... it is not on your side. you must check your internet or Proxy settings. i hope you internet must be working on simulator but not in your app.... :)
试一试。
这篇关于我的NSXMLParser没有解析并返回null的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!