What File Types are Supported by WKWebView?

前端 未结 1 1142
我寻月下人不归
我寻月下人不归 2021-02-13 16:23

UIWebView supports a whole list of file types, as detailed in this Apple Technical Q&A doc:

In addition to HTML content, UIWebView can disp

1条回答
  •  盖世英雄少女心
    2021-02-13 16:43

    I had the same question. I lodged a Technical Support Incident with Apple and received this answer (21st Sep 2017):

    1. All Microsoft Documents are supported.
    2. All iWork documents are supported.
    3. If UIWebView would render a document type then WKWebView will as well.

    On an iOS device running 10.3.3 and the Xcode 9.0 iOS 11.0 simulator, the above seems to work. I can display a range of MS Office documents (including docx, pptx, xlsx) as well as the UIWebView ones documented by Apple in QA 1630.

    The above list is however lacking at least the various image formats, so it's clearly incomplete. If I get more information from Apple I'll update this answer...

    (Bug report 17972625 requests WKWebView's documentation be updated to precisely specify what formats it does actually support, if you care to submit a duplicate to Apple Bug Reporter.)

    0 讨论(0)
提交回复
热议问题