English 中文(简体)
How to abortine s NSXMLParser等
原标题:How to abort iPhone s NSXMLParser wait

NS NS

NSXMLParser* xmlParser=[[NSXMLParser alloc] initWithContentsOfURL:[NSURL URLWithString:urlstring]];

如果服务器倒闭,它将等待相当一段时间才能返回。 即便我离开申请并重新开始申请,它实际上也无动于衷,它将继续等待一个黑色的屏幕,直到它时为止。

我如何回避 in? 是否有更好的办法来检查服务器是否在打电话之前安装? 帮助。

最佳回答

You should use NSURLConnection and its delegates to download to an NSData type. Then you can control the connection properly. From there you can pass the NSData to the NSXMLParser and control it separately. I hope it help you.

问题回答

最后,我使用了“IDWebView”,首先要求URL。 如果完成装货工作,我将再次打电话给Xmlparser。 关于IDWebView申请的口号是,它穿着不同的线索,以便国际律师联合会不冻结。

这不是一个想法;我对要求同样多的URL提出两点仇恨。 如果你有更好的建议,请提供帮助。





相关问题
What object should a Monitor wait on?

When using Monitor.Wait(object obj) what should one use for the obj? In this article I m reading on multithreading in .NET the author instantiates a new Object() to be used only as a monitor lock. Is ...

Multi-Threading - waiting for all threads to be signalled

I have scenarios where I need a main thread to wait until every one of a set of possible more than 64 threads have completed their work, and for that I wrote the following helper utility, (to avoid ...

Understanding wait()

I created this silly program to play with wait() public class WaitTest { public static void main(String [] args) { System.out.print("1 "); synchronized(args){ System.out....

Signal 11 segfault on wait() system call?

I m working on a basic shell in C. In my implementation of pipes, I count the commands on the line and iteratively fork() a new process. At the end of each iteration I wait() on the child before ...

jQuery: Handle fallback for failed AJAX Request

Can jQuery provide a fallback for failed AJAX calls? This is my try: function update() { var requestOK = false; $.getJSON(url, function(){ alert( request successful ); ...

How do I wait for a TTimer to finish?

I have a TFrame (fraDisplay) with a TTimer (timAnimateDataChange). The timer is used to control a small animation. In the form containing the frame I want to have a method that does something like ...

热门标签