iPhone移动Safari浏览器文件系统访问 [英] iPhone Mobile Safari File System Access

查看:248
本文介绍了iPhone移动Safari浏览器文件系统访问的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



是否有可能在本地iPhone应用程序中写入文件,并从该文件读取Safari浏览器?

另外(这将是伟大的!),是否有可能从本地iPhone应用程序启动移动Safari Web应用程序,并有该应用程序访问OS 3.0外部附件框架?我的假设是不... ...

基本上,我有一个功能齐全的iPhone应用程序,它包装了一个简单的移动Safari Web应用程序,但我想利用一次的外部附件框架我已经从iPhone应用程序启动了Safari webapp ...

解决方案

有两种不同的解释。如果您想从应用中启动 MobileSafari,那么答案将是,因为MobileSafari和您的应用被沙盒隔离。但是,您可以在URL中包含详细信息,如


  • http://example.com?info=SXMgaXQgcG9zc2libGUgdG8gd3JpdGUgdG8gYSBma ...但是你可以在你的应用程序中嵌入一个UIWebView,那么答案就是 / strong>(到UIWebView),因为你可以用任何ObjC代码与Web视图进行通信。


    Is it possible to write to a file in a native iPhone application and have a Safari browser read from that file after having the browser opened from the native app?

    Alternatively (and this would be great!), would it be possible to launch a mobile Safari webapp from a native iPhone app, and have that application access the OS 3.0 External Accessory Framework? My assumption is no...

    Basically, I have a functioning iPhone app that wraps a simple mobile Safari webapp, but I'd like to utilize the external accessory framework once I have launched the Safari webapp from the iPhone app...

    解决方案

    There are 2 different interpretations. If you want to launch MobileSafari from your app, then the answers will be no since MobileSafari and your app are isolated by sandboxes. But you may include the detail in the URL like

    • http://example.com?info=SXMgaXQgcG9zc2libGUgdG8gd3JpdGUgdG8gYSBma…

    But you can embed a UIWebView in your app, then the answers will be yes (to the UIWebView), since you may communicate with the web view with any ObjC code.

    这篇关于iPhone移动Safari浏览器文件系统访问的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆