Reputation: 1020
I am importing images of photos of device in application.
I display all the images selected by user from photos.
I stored this images into document directory and image path into database.
Now the problem is when user completed selection of images from photos after completion i have to ask them for delete images from photos.Now if user press delete how can i delete those images.
I stored that selected images in document directory for application requirement.
Also if selected images are deleted from photos then how can i export that images into photos?
Please help me to solve this problem.
Upvotes: 0
Views: 1248
Reputation: 1020
// Delete asset from library
[[PHPhotoLibrary sharedPhotoLibrary] performChanges:^{
[PHAssetChangeRequest deleteAssets:assetArray];
} completionHandler:completionHandler];
Upvotes: 1