Camera仅在UITabBarController中第一次使用

时间:2014-07-10 16:01:58

标签: ios objective-c xcode uiimagepickercontroller

我有UITabBarController,其中一个标签是Camera Tab。

Camera Tab的控制器是TakePhotoViewController。在TakePhotoViewController

- (void)viewDidLoad
{
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.

    CameraViewController *controller = [[CameraViewController alloc] initWithNibName:@"CameraViewController" bundle:nil];
    [self presentViewController:camController animated:YES];
}

当我关闭相机时,它不再起作用了。我想随时打开相机,但是当我触摸相机标签时它才第一次运行。我该如何解决?

谢谢,Mert

0 个答案:

没有答案