Is there a way to remove an image from a custom photo album?
I don't want to permanently delete the asset from the phone but just simply disassociate x image from x album.
I am trying to build an application that automatically manages certain photo albums.
In some cases images would need to be removed from photo albums and added to others.
I am currently using the ALAssetsLibrary to create photo albums and add images to them.
There is no public API to remove an image from a custom/user created album. If you want that feature in the future, request it at https://feedbackassistant.apple.com/.
Related
My app allows users to pick images from Photo Library.
I use UIImagePickerController for this.
User may want to pick image from nested folders and finaly from particular album.
When user wants to pick another image again, the odds are good they will want to get image from the same album as previously.
Is there any way to instruct UIImagePickerController to show particular album (in this scenario the one from which previous image was loaded) when opening a new image ?
I found a similar question asked 10 years ago with negative answer, but since then maybe something have changed... [?]
Open UIImagePickerController to custom photo album?
I am using UIImagePickerController to select photos. But it will show the list of album first, I have to select a album then go into that album to select photo. How can I specify a default album and let image picker controller to select the photos in that album directly?
I guess all you can do is to choose among these three options UIImagePickerControllerSourceTypePhotoLibrary, UIImagePickerControllerSourceTypeCamera, UIImagePickerControllerSourceTypeSavedPhotosAlbum.
If all you wanted to do is to open Camera Roll album directly, specify UIImagePickerControllerSourceTypeSavedPhotosAlbum. I don't think you can get more specific than that.
What would be the best way in iOS 7 to take pictures inside a custom album (Named after my application) and then show the custom album.
I mean, I could add those pictures in a group using AssetsLibrary but there's some way to show them afterwards without having to create a custom gallery?
https://developer.apple.com/library/ios/samplecode/AVCam/Introduction/Intro.html the sample app is included. take a look
In my app which i am developing now has the Image Gallery where it consist of lot of albums and multiple images per album.
which is the best practice to use for Image Gallery? where i am planning to create a tableview for album listing and a navigating to a new View Controller taping on album. is that good way of creating albums?
and i'm using AFNetwork how to cache the images in the background so that the performance of the application will not effect.
Thanks in Advance.
There are lot if third party image gallery libraries available for iOS. Following are few of them :
FGallery-iPhone
UIPhotoGallery
MWPhotoBrowser
Image-Gallery
If above ones doesn't serve your purpose you can always create a custom gallery view that serves your purpose.
I know it is possible to show ALL photo albums by setting the source of a uiimagepickerviewcontroller to UIImagePickerControllerSourceTypePhotoLibrary. However, is it possible to then navigate to a specific album if it exists?
No this cannot be.
Unfortunately,The UIImagePickerController is a private, system class, which doesn't really allow alteration.
You can not do this using UIImagePickerController but you can iterate through the gallery album.
Here is an example CustomPhotoAlbumDemo.