user3109249
user3109249

Reputation:

full screen camera in ios

I'm using the following code so the user can take a pic:

- (IBAction)takePhoto:(UIButton *)sender {

    UIImagePickerController *picker = [[UIImagePickerController alloc] init];
    picker.delegate = self;
    picker.allowsEditing = YES;
    picker.sourceType = UIImagePickerControllerSourceTypeCamera;

    [self presentViewController:picker animated:YES completion:NULL];

}

Is there a way to make the camera occupy the hole screen?

Upvotes: 0

Views: 221

Answers (1)

LLooggaann
LLooggaann

Reputation: 445

What you're seeing is the default implementation of UIImagePickerController which includes camera controls.

Try turning these off by setting showsCameraControls to NO.

If you want to add your own controls, use cameraOverlayView.

Upvotes: 1

Related Questions