我正在实施有关摄像机模式功能的应用程序,但应用程序只能运行景观,但摄像机在仅剩下一部分IPad处于黑色状态。IPad摄像机方向问题
if ([UIImagePickerController isSourceTypeAvailable:UIImagePickerControllerSourceTypeCamera]) {
camPicker.sourceType = UIImagePickerControllerSourceTypeCamera;
camPicker.delegate = self;
camPicker.allowsEditing = NO;
[self presentModalViewController:camPicker animated:YES];
对于取向固定为
if (interfaceOrientation == UIInterfaceOrientationLandscapeLeft) {
return interfaceOrientation == UIInterfaceOrientationLandscapeLeft;
}else
{
return interfaceOrientation == UIInterfaceOrientationLandscapeRight;
}
直到无法打开相机在全屏!!!! – Byka 2013-02-18 07:59:47