我用相機捕獲圖像。捕獲後我想要得到的網址,以便我可以得到圖像名稱。我使用下面的代碼爲此。如何從ios中的PHPhotoLibrary獲取ref url?
PHObjectPlaceholder *assetholder;
PHPhotoLibrary *objPhoto = [PHPhotoLibrary sharedPhotoLibrary];
[objPhoto performChanges:^{
PHAssetChangeRequest *assets = [PHAssetChangeRequest creationRequestForAssetFromImage:info[UIImagePickerControllerOriginalImage]];
PHObjectPlaceholder *assetholder = assets.placeholderForCreatedAsset;
} completionHandler:^(BOOL success, NSError * _Nullable error) {
}];
建議我如何獲取圖像的網址,以便我可以獲取圖像名稱。
人相似 - 大BOUNTY - http://stackoverflow.com/questions/43791151/100-bounty-actually-get-the-filename-of-image-saved-to-photos-album-2017- ios10 – Fattie