1
我试图从两个日期范围内的图片库中提取图像,并且I am getting the images successfully。如何在iOS中使用PHAsset获取图像的经度和纬度?
我也通过使用下面的代码获取图像的信息。
PHContentEditingInputRequestOptions *options = [[PHContentEditingInputRequestOptions alloc] init];
options.networkAccessAllowed = YES; //download asset metadata from iCloud if needed
[asset requestContentEditingInputWithOptions:options completionHandler:^(PHContentEditingInput *contentEditingInput, NSDictionary *info) {
CIImage *fullImage = [CIImage imageWithContentsOfURL:contentEditingInput.fullSizeImageURL];
//NSLog(@"fullImage=%@", fullImage.properties.description);
}];
但图像信息给我的字符串格式。
我试图将它转换成NSDictionary格式(获取拉特和长),但得到空输出。
如何获得图像的经纬度?
如果有另一种方式来获得信息,请帮我
预先感谢您