在我的ViewDidLoad电话UIAlertView "Getting data. Please Wait...."中,NSTimer scheduledTimerWithTimeInterval 5 秒。在此之后,我创建了一个从 Web 服务器获取数据GetData的方法。NSURLConnection在我有didFailWithError另一个:NSURLConnectionUIAlertView
"Cannot connect to server. Please check your network settings".
问题是我的第一个AlertView直接消失了,方法didFailWithError是拳头调用。没有 5 秒等待第一个警报。
感谢您的回复。