iOS 7 UIWebView 不呈现 [英] iOS 7 UIWebView not rendering

查看:18
本文介绍了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天全站免登陆