I am trying to save a large webpage locally and display it in a UIWebV开发者_开发知识库iew. When I save it, it makes a directory with several hundred files. And when I load the index into UIWebView, I get a blank screen. Interestingly, when I load it into browsers, it works in Firefox and in Safari, but not in Chrome. I'm guessing this means that something in the webpage is not universally supported. But what? How can I find out?
I don't know HTML very well; is there some studying there that might help me? If so, what?
For PowerPoint
Try to convert the PowerPoint to a PDF. Just directly load the PDF instead loading a page containing a PowerPoint. If the user has installed iBook, he can even save the PDF to iBook directly.
For Videos
For videos, I think you can try using VideoJS video player and use a web page to contain it. If more complicated animations are involved other than videos, you may consider to make a full app instead of using UIWebView...
What I needed to do was put all the files inside a settings bundle. The system was getting confused because paths get flattened when the app is copied into the app bundle. By putting the files into a settings bundle, that was prevented.
精彩评论