问题描述
我想使用UIWebView载入文字文件。我使用了
中提供的代码
加载文档。
但并非所有文档都加载成功。有时我得到一个错误
错误域= WebKitErrorDomain代码= 102 UserInfo = 0x145bc10框架加载中断
错误似乎是零星的,我得到这个错误只有一些文件。
>解决方案
原因是,我尝试加载的文件不包含扩展名。
我故意删除文件扩展名(.doc和.ppt),我认为混淆UIWebView。看起来像iPhone忽略操作系统9传统类型完全。 :)
I want to load a word document using UIWebView. I used the code provided inhttp://developer.apple.com/iphone/library/qa/qa2008/qa1630.htmlto load the document.
But not all the documents load successfully. Sometimes I get an error
Error Domain=WebKitErrorDomain Code=102 UserInfo=0x145bc10 "Frame load interrupted"
The error seems to be very sporadic and I get this error only for some documents.However the same document loads correctly in mail.app.
What am I missing?
The reason was, the file I tried to load doesn't contain a extension.I was purposely removing the file extension (.doc and .ppt) which I think confused the UIWebView. Seems like iPhone ignores the OS 9 legacy typecodes completely. :)
这篇关于在UIWebView中加载字文档时,帧加载中断的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!