在iPhone Safari上运行本地创建的文件 [英] run locally created file on iPhone safari
本文介绍了在iPhone Safari上运行本地创建的文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
对于iOS应用程序开发来说是新的。
我想问一下是否可以创建一个 html
文件并将其保存在应用程序(文件)中并运行 html
在Safari Safari上的文件?
am new to iOS application dev.
I want to ask whether could create a html
file and save it in app (files) and run this html
file on iOS safari?
感谢
al
thanks al
推荐答案
我认为这不可能。 UIApplication的openURL和UIDocumentInteractionController都不会在Safari中打开html文件。我建议你实例化你自己的Safari(UIWebView)并在你的应用程序中打开html文件。如果将表现得非常像Safari。
I don't think it is possible. Neither UIApplication's openURL: nor UIDocumentInteractionController will open an html file in Safari. I would suggest you instantiate your own "Safari" (UIWebView) and open the html file within your app. If will behave pretty much like Safari.
这篇关于在iPhone Safari上运行本地创建的文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文