简体   繁体   English

iPhone应用程序删除照片

[英]iPhone App Delete Photos

Is it possible to delete photos within an iPhone Application? 是否可以在iPhone应用程序中删除照片? My application takes pictures and puts them in the Saved folder on the iPhone. 我的应用程序会拍摄照片并将其放在iPhone的“已保存”文件夹中。 I want to allow the user to delete these pictures throught the application as well. 我也希望允许用户通过应用程序删除这些图片。

apple does not provide api's for deleting photos from the camera roll. 苹果不提供用于从相机胶卷删除照片的api。 However, if your application takes or edits pictures you could give the user the option to discard or save before the photo is committed to the saved photos. 但是,如果您的应用程序拍摄或编辑图片,则可以为用户提供在将照片提交到已保存的照片之前放弃或保存的选项。 But in short, once the photo is committed to saved photos, it cannot be deleted. 但简而言之,一旦将照片提交给已保存的照片,就无法将其删除。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM