1
我想表明UIImagePickerController
在iPad2的全屏模式。 presentModalViewController:
似乎不适合我。 它显示与捕获按钮框架,但不显示正在捕获什么视频预览?在全屏显示ipad2相机?
任何人有同样的问题之前,现在如何解决?
感谢
我想表明UIImagePickerController
在iPad2的全屏模式。 presentModalViewController:
似乎不适合我。 它显示与捕获按钮框架,但不显示正在捕获什么视频预览?在全屏显示ipad2相机?
任何人有同样的问题之前,现在如何解决?
感谢
使用AVFoundation框架, 那么AVCaptureVideoPreviewLayer可以设置为全屏。
这个工作对我来说:
UIImagePickerController *controller = [[UIImagePickerController alloc] init];
controller.sourceType = UIImagePickerControllerSourceTypeCamera;
controller.allowsEditing = NO;
controller.delegate = self;
[self presentModalViewController:controller animated:YES];
注意自我是当前视图控制器。
您的意思是,我会像平常一样呈现我的UIImagePickerController,然后将'AVCaptureVideoPreviewLayer'添加为imagePicker子图层?你有什么想法,为什么如果我在popOverView中显示imagePicker,预览图层显示,但不presentModal? – KONG 2011-03-28 14:31:37
都能跟得上:AVFoundation下,你不使用任何的UIImagePickerController多(有样例代码中,苹果公司的)。对于目前的模式,我相信这是你初始化它的问题。 – nicc 2011-03-29 00:50:31