【发布时间】:2011-11-25 18:41:21
【问题描述】:
我想知道如何在我的 iPad 应用程序中捕获和处理 WebKit 错误。到目前为止,我没有找到有关 ErrorDomain 和 ErrorCodes 的信息。这是奇迹吗?
这是我在设备(iPad2、iOS 5.0.1)上测试期间不时在 Xcode 控制台上看到的内容。
WebKit discarded an uncaught exception in the webView:runJavaScriptAlertPanelWithMessage:initiatedByFrame: delegate: <(null)> A route has already been registered for class 'Publication' and HTTP method 'ANY'
如何捕捉 WebKit 错误?在 alert() 期间引发此错误;在 UIWebView 中加载的 HTML 页面中的 JS 中。
【问题讨论】:
标签: ios error-handling uiwebview webkit