Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS 7 UIWebView not rendering

I'm porting my app to iOS 7 and I have a problem with UIWebView in iOS 7. I load local html string in it with this code:

NSURL *baseURL = [NSURL fileURLWithPath: DOCUMENTS_DIRECTORY]; [self.descWebView loadHTMLString:html baseURL:baseURL]; 

It works perfectly on iOS 6 and prior but on iOS 7 it doesn't rendering and the UIWebView is still white. And this message appears in console:

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

Thanks for your replies.

like image 511
usakc Avatar asked Sep 28 '13 10:09

usakc


People also ask

Is UIWebView deprecated?

Apple is phasing out UIWebView, which is used by developers for integrating web content into an app in a quick and secure manner. Apple is replacing UIWebView (and WebView) with WKWebView, an updated version, as UIWebView has been deprecated.

When was UIWebView deprecated?

And last year, we announced that the App Store will no longer accept app updates containing UIWebView as of December 2020.

What is UIWebView in iOS?

What is UIWebView? UIWebView is a deprecated iOS user interface control in Apple's UIKit framework. It loads HTML files and web content into an app view, rendering them as they would appear in a browser window. See developer.apple.com/documentation/uikit/uiwebview.


1 Answers

As mentioned by @zaplitny, I had to update Crittercism to the latest version (4.1.0) for this problem to go away.

like image 112
Trunal Bhanse Avatar answered Sep 21 '22 15:09

Trunal Bhanse