![](/img/trans.png)
[英]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?
[英]Is there any way a user could save images to my app from safari as they can do with the native camera roll app?
在iPhone上,如果您在野生動物園中按住圖像時,會彈出對話框,詢問您是否要保存或復制圖像。 如果保存,圖像將直接下載到相機膠卷中。 如果我希望用戶將圖像保存到我的應用程序中,就像將它們從野生動物園保存到相機膠卷一樣方便,我該怎么做?
通過將適當的設置添加到info.plist中,您應該能夠將您的應用設置為能夠打開所需類型(.jpg,.png等)的圖像文件,這將導致系統添加“ “打開方式”項進入Safari中的共享對話框。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.