【问题标题】:How can I get the EXIF data of the image through UIImagePickerController or QBImagePickerController?如何通过 UIImagePickerController 或 QBImagePickerController 获取图片的 EXIF 数据?
【发布时间】:2016-05-06 11:20:28
【问题描述】:
我需要在给定位置获取在我最后上传的图像的所需纬度和经度,以便将来可以使用相同的位置。
【问题讨论】:
标签:
ios
objective-c
location
【解决方案1】:
试试这个可能对你有帮助
-(void) locationConfigureAppearance{
[m_LocationManager stopUpdatingLocation];
[m_LocationManager stopMonitoringSignificantLocationChanges];
m_LocationManager = [[CLLocationManager alloc] init];
m_LocationManager.desiredAccuracy = kCLLocationAccuracyKilometer;
m_LocationManager.delegate = self;
m_LocationManager.activityType = CLActivityTypeFitness;
if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 8.0)
{
[m_LocationManager requestWhenInUseAuthorization];
[m_LocationManager requestAlwaysAuthorization];
}
[m_LocationManager requestAlwaysAuthorization];
[m_LocationManager startUpdatingLocation];
}
#pragma mark - locationManager delegate Methods
- (void)locationManager:(CLLocationManager *)manager didUpdateLocations:(NSArray *)locations
{
CLLocation* newLocation = [locations lastObject];
m_GPSCoordinate = newLocation.coordinate;
self.SelectedLattitude = m_GPSCoordinate.latitude;
self.SelectedLongitude = m_GPSCoordinate.longitude;
NSLog(@"self.SelectedLattitude = %f %f",self.SelectedLattitude,self.SelectedLongitude);
}