iOS8中的UIimagepicker相机切换控制问题

时间:2014-09-30 10:27:44

标签: ios8

我正在研究UIImagepicker。我发现很奇怪,无法在iOS8上看到摄像头开关控制,但是当我点击顶部时,摄像头会切换。我的这个iOS8错误或错误吗?

但是当我在iOS7中检查时,iOS6能够看到相机切换控件。

UIImagePickerController *picker=[[UIImagePickerController alloc] init];
         picker.delegate=self;
         picker.sourceType = UIImagePickerControllerSourceTypeCamera; 
         picker.showsCameraControls=YES;
         [self presentViewController:picker animated:YES completion:nil];

1 个答案:

答案 0 :(得分:0)

尝试以下方法。希望它会有用。

UIImagePickerController *imgPicker = [[UIImagePickerController alloc] init];
imgPicker.delegate = self;
imgPicker.sourceType = UIImagePickerControllerSourceTypeCamera;
[self presentViewController:imgPicker animated:YES completion:NULL];