【发布时间】:2011-11-25 05:06:02
【问题描述】:
我正在尝试在 iPad 上的 UIWebview 中打开下载的 .doc 文件。 基本上 .doc 文件在我试图打开的文件名和文件内容中都有 unicode 字符。
我在控制台中收到以下错误日志
WebKit discarded an uncaught exception in the webView:decidePolicyForNavigationAction:request:frame:decisionListener: delegate: <NSRangeException> *** -[NSArray objectAtIndex:]: index 0 beyond bounds for empty array
但是 webview 的 didFailLoadWithError 或 webViewDidFinishLoad 委托都没有被调用,所以我该如何捕获错误。这可能是什么原因?
【问题讨论】:
标签: ios exception unicode uiwebview uiwebviewdelegate