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格式(獲取拉特和長),但得到空輸出。
如何獲得圖像的經緯度?
如果有另一種方式來獲得信息,請幫我
預先感謝您