1

I'm adding UIImagePickerController as a subview of my UINavigationController which is inside a UIPopoverController.

Heres the code:

        UIViewController *container = [[UIViewController alloc] init];
        self.navigationBarHidden = YES;

        camera = [[UIImagePickerController alloc] init];
        camera.sourceType = UIImagePickerControllerSourceTypeCamera;

        [container addChildViewController:camera];
        [container.view setFrame:camera.view.frame];
        [container.view addSubview:camera.view];

        [self pushViewController:container animated:YES];

Everything looks great but the shutter animation. It seems to be off center, where the middle of the iris is actually hitting the top of the view.

How do I fix the shutter animation?

4

0 回答 0