iOS 7 UIWebView not rendering(iOS 7 UIWebView 不呈现)
本文介绍了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 不呈现的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
织梦狗教程
本文标题为:iOS 7 UIWebView 不呈现
基础教程推荐
猜你喜欢
- AdMob 广告未在模拟器中显示 2022-01-01
- navigator.geolocation.getCurrentPosition 在 Android 浏览器上 2022-01-01
- Android:getLastKnownLocation(LocationManager.NETWORK_PROVIDER 2022-01-01
- iOS4 创建后台定时器 2022-01-01
- iPhone - 获取给定地点/时区的当前日期和时间并将其与同一地点的另一个日期/时间进行比较的正确方法 2022-01-01
- 通过重定向链接在 Google Play 中打开应用 2022-01-01
- NSString intValue 不能用于检索电话号码 2022-01-01
- libGDX 从精灵或纹理中获取像素颜色 2022-01-01
- 如何从 logcat 中删除旧数据? 2022-01-01
- Cocos2d iPhone 非矩形精灵触摸检测 2022-01-01
