I have an array, photoAsset, and I am trying to delete each item listed in the array from an asset collection. How do I go about doing this?
This is what I have tried
PHPhotoLibrary.sharedPhotoLibrary().performChanges({ () -> Void in
let request = PHAssetCollectionChangeRequest(forAssetCollection: self.assetCollection)
//This is the number of items in my array
println(self.photosAsset.count)
//Only removes the FIRST item, need to remove ALL items
request.removeAssets([self.photosAsset[0]])
}, completionHandler: nil)
self.photoAssetarray? Are the elementsPHAssetobjects or arrays ofPHAssetobjects?