Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to skip 'retake and use' option after captureing photo from camera

enter image description here

How to skip 'retake and use' option after captureing photo from camera or how to change font and color of these buttons.

We have used following code

    self.gimgPicker = [[GKImagePicker alloc] init];
    self.gimgPicker.cropSize = CGSizeMake(310, 310);
    self.gimgPicker.delegate = self;
    self.gimgPicker.desiredSize = CGSizeMake(640, 640);
    imgPicker = [[UIImagePickerController alloc] init];
            // Set type to Photo Library if button at index is selected
            if ([UIImagePickerController isSourceTypeAvailable: UIImagePickerControllerSourceTypeCamera]) {

                self.gimgPicker.imagePickerController.sourceType = UIImagePickerControllerSourceTypeCamera;
                [parentController presentModalViewController:self.gimgPicker.imagePickerController animated:YES];
}
like image 666
Pallavi Avatar asked Apr 15 '13 10:04

Pallavi


1 Answers

this view is brought to you by showsCameraControls property of UIImagePickerController class

If you set it to NO you won't see that screen, but you will have to provide camera controls.

Your alternative is to use AVFoundation which will give you full flexibility on how it looks and performs. Although it will take a bit more time to setup, it will pay-off in the long run.

like image 79
Andrei G. Avatar answered Sep 29 '22 16:09

Andrei G.