我正在研究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];
答案 0 :(得分:0)
尝试以下方法。希望它会有用。
UIImagePickerController *imgPicker = [[UIImagePickerController alloc] init];
imgPicker.delegate = self;
imgPicker.sourceType = UIImagePickerControllerSourceTypeCamera;
[self presentViewController:imgPicker animated:YES completion:NULL];