我正在用相机捕捉图像。捕获后,我想获取 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) {
}];
建议我如何获取图像的 url,以便我可以获取图像名称。