简体   繁体   English

如何在iOS中获取uiimagepicker微调按钮动作?

[英]How to get uiimagepicker Spinner button action in iOS?

I'm using below code. 我正在使用下面的代码。

 self.picker=[[UIImagePickerController alloc] init];
 self.picker.delegate=self;
 self.picker.allowsEditing=NO; 
 self.picker.sourceType=UIImagePickerControllerSourceTypeCamera;
 self.picker.cameraOverlayView=[self addCameraRollButton];
 [self presentViewController:self.picker animated:NO completion:NULL];

How to take picture from camera without going to Usephoto page. 如何在不进入Usephoto页面的情况下从相机拍摄照片。 I want to stay on camera view. 我想保持相机视角。 I'm not able to get camera spinner action.I used custom overlay but in that Square focus not coming.Please help me.I want all default camera features. 我无法使用相机微调功能。我使用了自定义叠加层,但方形对焦不来了。请帮助我。我想要所有默认相机功能。

Once you use custom overlay you will not be able to see default camera features.If you want all default features you should use 使用自定义叠加层后,您将无法查看默认的相机功能。如果要使用所有默认功能,则应使用

self.picker.showsCameraControls = YES;

This opens default camera and you can see all features. 这将打开默认相机,您可以看到所有功能。 If you want to go with custom overlay then you need to built all features. 如果要使用自定义叠加层,则需要构建所有功能。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM