I have a custom UIView that I created to display custom buttons and toolBar. When I first called him to show, the bar is on top of the shutter (which is good). But after the camera is loaded, a shutter appears in front of it, then it opens.
If you look at native camera.app, it will not. The toolbar stays there all the time. Here is my code:
// .h UIImagePickerController *theCamera; @property (nonatomic, retain) UIImagePickerController *theCamera; // .m theCamera = [[UIImagePickerController alloc] init]; theCamera.delegate = self; theCamera.sourceType = UIImagePickerControllerSourceTypeCamera; theCamera.showsCameraControls = NO; theCamera.toolbar.alpha = 0; theCamera.navigationBarHidden = YES; theCamera.toolbarHidden = YES; theCamera.wantsFullScreenLayout = YES; theCamera.cameraViewTransform = CGAffineTransformMakeScale(1.25, 1.25); UIImageView *tabBarBack = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"tab_bar_back.png"]]; tabBarBack.frame = CGRectMake(0, 422, 320, 58); [customView addSubview:tabBarBack]; theCamera.cameraOverlayView = customView; [self presentModalViewController:theCamera animated:YES];
Obviously there are more buttons that I add to customView , but you get the concept.
source share