获取相册照片位置信息
PHContentEditingInputRequestOptions *options = [[PHContentEditingInputRequestOptions alloc] init];
[options setCanHandleAdjustmentData:^BOOL(PHAdjustmentData * _Nonnull adjustmentData) {
return YES;
}];
for (int i = 0; i<photos.count; i++) {
PHAsset *asset = assets[i];
UIImage *img = photos[i];
[asset requestContentEditingInputWithOptions:options completionHandler:^(PHContentEditingInput * _Nullable contentEditingInput, NSDictionary * _Nonnull info) {
NSLog(@"图片地址----%@", contentEditingInput.fullSizeImageURL.path);
}];
}
原文地址 https://stackoverflow.com/questions/38183613/how-to-get-url-for-a-phasset?noredirect=1#
网友评论