UIWebview 在控制台中卡住并显示以下消息。
void SendDelegateMessage(NSInvocation*): delegate (webView:didFinishLoadForFrame:)
failed to return after waiting 10 seconds. main run loop mode: kCFRunLoopDefaultMode
有人知道这是什么吗?
最佳答案
您是否在正在加载的页面上使用了任何 Javascript?
具体是你用的方法吗
- (NSString *)stringByEvaluatingJavaScriptFromString:(NSString *)script
作为docs陈述以下内容
JavaScript execution time is limited to 10 seconds for each top-level entry point. If your script executes for more than 10 seconds, the web view stops executing the script
这似乎与您在控制台中看到的错误消息有关
关于iphone - UIWebview 在控制台中遇到以下消息,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6489601/