我搜索一些方法在我的應用程序使用的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?