UIWebView
supports a whole list of file types, as detailed in this Apple Technical Q&A doc:
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)
Which is great. These days however they generally advise that developers use WKWebView
instead of UIWebView
as it's faster and offers significant JavaScript performance improvements. This is great, except that I can't find a list of file types that are supported.
It does appear to support media files (such as Quicktime .mov files) which UIWebView
did not, but now Word documents (.docx) do not seem to work. Is there a list of file formats that are supported by WKWebView
?