【发布时间】:2015-01-27 12:23:49
【问题描述】:
每当我拍照时,我只想要图像的经纬度,我不想保存图像,我只想要图像的经度和纬度。
每当我捕获图像时如何获取图像的经度和纬度,这里我使用的是用于相机的 ui 图像选择器控制器。
- (IBAction)btnCameraAction:(id)sender
{
UIImagePickerController *imagePickController=[[UIImagePickerController alloc]init];
imagePickController.sourceType=UIImagePickerControllerSourceTypeCamera;
imagePickController.delegate=self;
imagePickController.allowsEditing=TRUE;
[self presentViewController:imagePickController animated:YES completion:nil];
}
非常感谢任何代码帮助。提前致谢。
【问题讨论】:
-
当相机委托 didfinishpickingimage 被调用然后获取图像并访问它的属性大小,这将为您提供图像的高度和宽度
标签: ios cocoa-touch