iOS7的方式在iOS8中不再适用
[asset setImageData:nil metadata:nil completionBlock:^(NSURL *assetURL, NSError *error) {
}];
如何在iOS8中删除资产?
答案 0 :(得分:1)
[[PHPhotoLibrary sharedPhotoLibrary] performChanges:^{
PHFetchResult * fecthResult = [PHAsset fetchAssetsWithALAssetURLs:@[asset.url] options:nil];
[PHAssetChangeRequest deleteAssets:fecthResult];
} completionHandler:^(BOOL success, NSError *error) {
if (error) {
...
}
}];