开发者

UIWebView shows error message

I am getting this error message in the console, while I am trying to load a HTML page in UIWebView?

"void SendDelegateMessage(NSInvocation*): delegate failed to return after waiting 10 seconds. main run loop mode: UITrackingRunLoopMode If you were not using the touch screen for this entire interval (which can prolong this wait), please file a bug.". When I am debugging my code and wait wait for several second before clicking continue at this method:

-开发者_JAVA技巧 (void)webViewDidFinishLoad:(UIWebView *)webView
{
    // finished loading, hide the activity indicator in the status bar
    [self parseXMLFileAtURL:mPath];
}


The error message is telling you all you need to know: that you are taking too long to return from a delegate method.

If you're fetching stuff from the internet, that's your problem right there. Fatal error, do not resuscitate. Re-think your app structure.

Otherwise, you might need to make your xml parsing more efficient, because it's taking too long.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜