UIWebView Frame load interrupted
来源:互联网 发布:网络报警中心 编辑:程序博客网 时间:2024/06/05 15:22
Error Domain=WebKitErrorDomain Code=102 UserInfo=0x145bc10 "Frame load interrupted"
Had this strange issue where when I tried to load a cached file into the UIWebView on iOS it chucked up this error, more strange as I knew the file was sound as I was previously opening it in a UITextView.
The I stumbled across this
http://stackoverflow.com/questions/1482736/frame-load-interrupted-error-while-loading-a-word-document-in-uiwebview
It appears as though the UIWebView chokes when trying to open a document without a file extension, it makes some sense for a stripped down UIWebView to employ this tactic to file recognition even if it is reminiscent of the early 90′s. The solution was to add .html on to the end of the cached file, and voila.
In addition to HTML content, UIWebView can display specific document types.
iPhone OS 2.2.1 supports the following document types:
Excel (.xls)
Keynote (.key.zip)
Numbers (.numbers.zip)
Pages (.pages.zip)
PDF (.pdf)
Powerpoint (.ppt)
Word (.doc)
iPhone OS 3.0 supports these additional document types:
Rich Text Format (.rtf)
Rich Text Format Directory (.rtfd.zip)
Keynote '09 (.key)
Numbers '09 (.numbers)
Pages '09 (.pages)
- UIWebView Frame load interrupted
- UIWebView Frame load interrupted
- UIWebView中遇到的 frame load interrupt
- iOS UIWebView错误信息: frame load interrupt
- Error Domain=WebKitErrorDomain Code=102 "Frame load interrupted" UserInfo=0x16dc65a0 {NSErrorFailing
- uiwebview load date
- iOS uiwebview load request 出错
- interrupted()
- Load DLL's MdiChildForm and base frame
- iOS: load external image and css to UIWebView
- Load resources from relative path using local html in uiwebview
- UIWebView
- UIWebView
- UIWebView
- UIWebView
- UIWebView
- UIWebView
- UIWebView
- 判断是否为字符数字
- 经典地方话之贵州篇
- IOS 后台定位
- STK应用实例
- C/C++头文件的作用
- UIWebView Frame load interrupted
- OS X键盘快捷键
- ubuntu包管理工具apt-get相关
- POJ 2965.The Pilots Brothers' refrigerator
- 折腾了一段时间Mongodb后终于放弃了
- arm linux 从入口到start_kernel 代码分析 - 1
- Linux中Tomcat自启动(作为系统服务)
- [Oracle]存储汉字字段长度
- 数据库