0

For some reason my camera controls are misaligned and are displaying cut off at the top of the screen. Below is the code that I've implemented to use the camera, is there anything that could fix this?

- (void)takePhoto {
     UIImagePickerController *picker = [[UIImagePickerController alloc] init];
    if ([UIImagePickerController isSourceTypeAvailable: UIImagePickerControllerSourceTypeCamera]) {
        picker.sourceType = UIImagePickerControllerSourceTypeCamera;
        picker.cameraCaptureMode = UIImagePickerControllerCameraCaptureModePhoto;
    } else {
        picker.sourceType = UIImagePickerControllerSourceTypeSavedPhotosAlbum;
    }
    [MAINVIEWCONTROLLER presentViewController:picker animated:YES completion:nil];

}

enter image description here

1 Answers1

1

check wantsFullScreenLayout and set it accordingly.

If you want full screen, you will also need to hide the status bar using setStatusBarHidden:withAnimation:

Oliver Atkinson
  • 7,970
  • 32
  • 43
  • Awesome! That did it thanks! I was thinking that I'd have to manually move the camera controls, but it makes perfect sense to hide the status bar when taking a picture. –  Jul 29 '13 at 20:10