[英]Is there any way a user could save images to my app from safari as they can do with the native camera roll app?
On an iphone, if you hold down on an image while in safari, a diaglog pops up asking you if you want to save or copy the image. 在iPhone上,如果您在野生动物园中按住图像时,会弹出对话框,询问您是否要保存或复制图像。 If saved, the image is downloaded straight to your camera roll. 如果保存,图像将直接下载到相机胶卷中。 If I wanted the user to save images to my app as conveniently as they are saved to the camera roll from safari, how would I go about doing that? 如果我希望用户将图像保存到我的应用程序中,就像将它们从野生动物园保存到相机胶卷一样方便,我该怎么做?
通过将适当的设置添加到info.plist中,您应该能够将您的应用设置为能够打开所需类型(.jpg,.png等)的图像文件,这将导致系统添加“ “打开方式”项进入Safari中的共享对话框。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.