iPhone UIWebView 错误 [英] iPhone UIWebView Bug
问题描述
我在控制台中收到此错误消息,而我正在尝试在 UIWebView 中加载 html 页面?
I am getting this error message in the console, while i am trying to load a html page in UIWebView ?
"void SendDelegateMessage(NSInvocation*): 等待 10 秒后委托未能返回.主运行循环模式:UITrackingRunLoopMode如果您在整个时间间隔内都没有使用触摸屏(这会延长等待时间),请提交错误."
"void SendDelegateMessage(NSInvocation*): delegate failed to return after waiting 10 seconds. main run loop mode: UITrackingRunLoopMode If you were not using the touch screen for this entire interval (which can prolong this wait), please file a bug."
有什么原因吗?
谢谢
推荐答案
我不知道这是否一定是您的问题,但是当一段 Javascript 执行时间过长时,我收到了相同的消息.您是否知道您正在加载的网页是否在加载时执行任何繁重的 javascript?
I don't know if this is necessarily your problem, but I have received the same message when a piece of Javascript takes too long to execute. Do you know if the webpage you are loading is doing any heavy javascript on load?
在我的情况下,我正在测试您是否可以在 UIWebView 中使用 prompt() - 它有效,但是如果我用了 10 秒以上来关闭弹出窗口,则会出现您提到的错误.
In my case I was testing if you could use prompt() in a UIWebView - which worked, but gave the error you mentioned if I took more than 10 seconds to dismiss the popup.
这篇关于iPhone UIWebView 错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!