我想在我的应用程序中添加相机功能,但默认相机视图没有从图库中选择图像的选项,我这样做是因为我不想让用户选择图像选择器类型的警报视图,即,相机或照片库。如何实现这个?
UIImagePickerController *imagePicker = [[UIImagePickerController alloc]init];
[imagePicker setSourceType:UIImagePickerControllerSourceTypeCamera];
imagePicker.showsCameraControls = NO;
imagePicker.navigationBarHidden = YES;
imagePicker.wantsFullScreenLayout = YES;
imagePicker.cameraOverlayView = overlayView;