ALAssetsLibrary delete ALAssetsGroup / ALAsset

前端 未结 6 1529
终归单人心
终归单人心 2020-12-09 23:20

I have created \"photos album\" from my App, using IOS AssetsLibrary.

Reading ALAssetsLibrary,ALAssetsGroup and ALAsset documentations, i have seen methods to \"addA

6条回答
  •  天命终不由人
    2020-12-09 23:41

    in ios8 deleting photos might be possible using the Photos Framework

    Please check the documentation of Photos Framework

    For deleting assets refer to PHAssetChangeRequest

    + (void)deleteAssets:(id)assets
    

    where assets is an array of PHAsset objects to be deleted.

    For deleting collections refer to PHAssetCollectionChangeRequest

    + (void)deleteAssetCollections:(id)assetCollections
    

    https://developer.apple.com/library/prerelease/ios/documentation/Photos/Reference/PHAssetChangeRequest_Class/index.html#//apple_ref/occ/clm/PHAssetChangeRequest/deleteAssets:

提交回复
热议问题