Jamshed Alam
Jamshed Alam

Reputation: 12854

iOS UIImagePickerControllerSourceTypeCamera fullscreen photo not capturing

I am implementing camera function in my app which will take photo. But i can not take fullscreen image. It shows me a rectangle to select the image area.

My source is like :

        UIImagePickerController *picker = [[UIImagePickerController alloc] init];
        picker.delegate = self;
        picker.allowsEditing = YES;
        picker.sourceType = UIImagePickerControllerSourceTypeCamera;
        [self presentViewController:picker animated:YES completion:NULL];

How to take a fullscreen image from camera ?

Upvotes: 0

Views: 156

Answers (2)

Albert Montserrat
Albert Montserrat

Reputation: 21

Disable allowsEditing. This puts a rectangle to scale and crop the image.

Upvotes: 1

selva raj
selva raj

Reputation: 164

You change below line of code, this code allow the full size image

picker.allowsEditing = NO;

Upvotes: 2

Related Questions