【发布时间】:2016-09-28 10:23:24
【问题描述】:
我正在尝试从照片库中获取两个日期和I am getting the images successfully 范围内的图像。
我还通过使用以下代码获取图像的信息。
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 格式(用于获取 lat 和 long)但得到空输出。
如何获取图像的经纬度?
如果有其他获取信息的方法,请帮助我
提前谢谢你
【问题讨论】:
标签: ios objective-c uiimage nsdictionary phasset