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 不呈现


猜你喜欢
- 在 Iphone SDK 的导航栏上添加多个按钮 2022-01-01
- 如何在 iPhone 模拟器中重置 NSUserDefaults 数据? 2022-01-01
- 网上有没有好的 UIScrollView 教程? 2022-01-01
- URL编码Swift iOS 2022-01-01
- SetOnItemSelectedListener上的微调程序错误 2022-01-01
- GPS状态的广播接收器? 2022-01-01
- 类似于 Mail.app 的 iPad 模态视图控制器? 2022-01-01
- 使用自动布局向 UIScrollView 添加动态大小的视图 2022-01-01
- Xcode 7.3 中带有 UILabel 的 UIStackView 2022-01-01
- UITextView 内容插图 2022-01-01