Quantcast
Channel: How to delete an Album on iOS? - Stack Overflow
Browsing latest articles
Browse All 4 View Live

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


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 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

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
Browsing latest articles
Browse All 4 View Live




<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>