We can add an image to an photo album using
UIImage *img = [UIImage imageNamed:@"ImageName.png"];
UIImageWriteToSavedPhotosAlbum(img, self,
@selector(image:didFinishSavingWithError:contextInfo:), nil);
Is it possible to delete the added image later? If so, how can I give a user the option to delete the added image.
Your question is not very clear, but if you’re using documents directory to save this image, use the following method:
Documents Directory Approach
Save
Load
Remove
How-To
Save
Load
Remove
Note:
The ‘png’ extension is used as default in this case, but you can change it to whatever image extension you’re using.
Photo Albums Approach
Suggestion
Save your files to the documents directory folder using the above methods, read your images within your app. If the user does not like a photo he/she can then delete it from within your app (documents directory). If the user likes the photo, he/she can add it to photo albums or when the application exits you can add code to add the photos to your photo albums.
The documents directory approach is used by many photo applications. The methods above will help you if you use the documents directory approach.