iOS 7 UIWebView无法渲染 [英] iOS 7 UIWebView not rendering

查看:69
本文介绍了iOS 7 UIWebView无法渲染的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在将我的应用程序移植到iOS 7,我在iOS 7中遇到UIWebView问题。
我用这段代码加载了本地html字符串:

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];

它完全适用于iOS 6及之前但在iOS 7上它不会渲染,UIWebView是还是白的。此消息显示在控制台中:

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

感谢您的回复。

推荐答案

正如@zaplitny所提到的,我不得不将Crittercism更新到最新版本(4.1.0),以免这个问题消失。

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

这篇关于iOS 7 UIWebView无法渲染的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆