Search code examples
javascripthtmliosuiwebview

How does UIWebview do its rendering in iOS?


I have been using UIWebView to render file formats such as Keynote, Pages, Numbers, PPT, etc. Also, I tried accessing the various document attributes via stringByEvaluatingJavaScriptFromString: such as title, width, height, innerHTML, etc. and web view returns valid values for these.

So, my question is, how does UIWebView actually work? Does it convert everything to HTML before rendering? How does it return attributes such as innerHTML for non-html files?


Solution

  • It would be crazy for Apple to convert most formats to HTM.