Failed to return after waiting 10 seconds - loading UIWebViewHTMLString

when I load UIWebViewwith the following code:

NSString *helpText = [NSString stringWithFormat:@"Lorem Ipsum"];

[self.helpWebView loadHTMLString:[NSString stringWithFormat:@"<html><head></head><body stlye=\"background-color: transparent;\"><div align='justify' style=\"color: #000000; font-family: Helvetica; font-size: %fem;\">%@</div></body></html>", fontSize, helpText] baseURL:[NSURL URLWithString:@""]];

I get this error, but only for the first time when it loads in my application WebView:

void SendDelegateMessage(NSInvocation *): delegate (webView:decidePolicyForNavigationAction:request:frame:decisionListener:) failed to return after waiting 10 seconds. main run loop mode: kCFRunLoopDefaultMode

And the text will load, but only after 10 seconds. But the user interface is locked for 10 seconds. When I navigate through the application, others (“later”) UIWebViewswill load immediately, and this is not related to this particular one UIWebView, that is, if I got to UIWebViewA and then to UIWebViewB, A will be after 10 seconds of blocking the user interface, and B will be boot instantly. If it starts with B and then goes to A, B will load in 10 seconds, and A will load instantly. Thus, only the first UIWebViewone that loads creates a problem.

And I really download the html above. Some character duets, neither JScript, nor large tables, nor funny html files. It even blocks the user interface and reports an error if I load an empty HTML string.

- . UIWebView Interface Builder, , loadHTMLString .

: Simulator, , Simulator. , . . - . MacBook Air ( " " Mac OS X Lion).

: , UIWebView, - , . , . , Android, , , WebView.

+5
1

, (iOS 6.1 SDK), , . , skpaymenttransaction UIWebView... , ...

+5

All Articles