简体   繁体   English

用户可以像使用本机胶卷应用程序一样通过Safari将图像保存到我的应用程序吗?

[英]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.

相关问题 如何从相机胶卷中选择图片,然后将其保存到应用程序的“ Supporting Files”文件夹中,然后选择已保存文件的名称? - How can I select a picture from the camera roll, then save it to the “Supporting Files” folder of my app, then pick up the name of the saved file? 如何在iOS React Native应用中显示从相机胶卷加载的动画GIF - How can I display an animated GIF loaded from the camera roll in an iOS React Native app 视频应用程序将.mp4保存到相机胶卷 - video app save .mp4 to camera roll 我可以在相机胶卷上获取视频的绝对 URI 并从我的应用程序中对其进行变异吗? - Can I get absolute URI of video on camera roll and mutate it from my app? 无法在我的应用程序中打开相机胶卷 - Camera Roll cannot be opened in my app 从Safari打开Camera APP - Open Camera APP from Safari 如何将图片从 React Native Camera Roll 保存到特定文件夹 - How to save a Picture to a specific folder from React Native Camera Roll 如何使用应用内按钮将 ReplayKit 视频保存到相机胶卷 - How to Save ReplayKit Video to Camera Roll with In-App Button 未经用户明确同意,我可以将照片保存到相机胶卷吗? - Can i save photos to the camera roll without user explicit consent? Swift:将视频从 NSURL 保存到用户相机胶卷 - Swift: save video from NSURL to user camera roll
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM