我正在开发 iPad 应用程序。这里它由 PopOver 组成。我需要显示相机并捕获图像。为此,我使用的是 AVFoundation 框架,默认导航栏没有出现。所以我按照以下步骤操作
cameraVC = [[CameraViewController alloc] initWithNibName:@"CameraViewController" bundle:nil ];
cameraVC.navigationItem.title = @"Take Photo";
UINavigationController *naviCon = [[UINavigationController alloc]initWithRootViewController:cameraVC];
UIPopoverController *popover = [[UIPopoverController alloc] initWithContentViewController:naviCon];
self.popoverController = popover;
self.popoverController.delegate = self;
self.popover.popoverContentSize = CGSizeMake(450, 350);
[self.popoverController presentPopoverFromRect:CGRectMake(295, 40, 0, 0) inView:appDelegate.splitview.view permittedArrowDirections:UIPopoverArrowDirectionUp animated:YES];
如果你已经解决了,请指导我哪里错了。在此先感谢