UIWebView Frame load interrupted


Error Domain=WebKitErrorDomain Code=102 UserInfo=0x145bc10 "Frame load interrupted"
http://whatineedis.info/uiwebview-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.



http://developer.apple.com/iphone/library/qa/qa2008/qa1630.html


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)



  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值