Quantcast
Channel: How to delete an Album on iOS? - Stack Overflow
Browsing index pages (4 articles)
↧

How to delete an Album on iOS?

I'm using PhotoKit and I've created an album PHAssetCollectionChangeRequest.creationRequestForAssetCollection(withTitle: RooPhotoAlbum.albumName)But I found some issue with first time saving file to...

View Article


Answer by Douglas Silva for How to delete an Album on iOS?

let options = PHFetchOptions()options.predicate = NSPredicate(format: "title = %@", RootPhotoAlbum.albumName)let album = PHCollectionList.fetchCollectionLists(with: .folder, subtype: .any, options:...

View Article


Answer by Maysam for How to delete an Album on iOS?

Douglas' answer fetches PHCollectionList then tries to perform an action on PHAssetCollection which fails. You should do this:options.predicate = NSPredicate(format: "title = %@", "AlbumName")let album...

View Article

Answer by jayesh chaudhari for How to delete an Album on iOS?

Here's a function to delete a custom album programmatically with error handling:func deleteAlbum(albumName: String) { let options = PHFetchOptions() options.predicate = NSPredicate(format: "title =...

View Article
Browsing index pages (4 articles)


Latest Images