我搜索一些方法在我的应用程序使用的UIImagePickerController,ADN唯一一个我发现,工作是如下:iPhone - 呈现出的UIImagePickerController
论的应用中展示的第一景,放:
self.picker = [[UIImagePickerController alloc] init];
self.picker.sourceType = UIImagePickerControllerSourceTypeCamera;
self.picker.showsCameraControls = NO;
self.picker.navigationBarHidden = YES;
self.picker.wantsFullScreenLayout = YES;
// Insert the overlay
self.overlay = [[OverlayViewController alloc] initWithNibName:@"Overlay" bundle:nil];
self.picker.cameraOverlayView = self.overlay.view;
[self presentModalViewController:self.picker animated:NO];
您是否知道另一个(Apple允许的方法)将这样的摄像头控件包含到视图中,而无需调用presentModalViewController?