如何在从相机拍摄照片后跳过"重拍和使用"选项

Pal*_*avi 8 iphone camera objective-c ios

在此输入图像描述

如何在从相机捕获照片或如何更改这些按钮的字体和颜色后跳过"重拍和使用"选项.

我们使用了以下代码

    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];
}
Run Code Online (Sandbox Code Playgroud)

And*_* G. 3

该视图是通过类的showCameraControls属性为您带来的UIImagePickerController

如果您将其设置为NO您将看不到该屏幕,但您必须提供相机控制。

您的替代方案是使用AVFoundation,它将为您提供其外观和性能方面的充分灵活性。尽管设置需要花费更多时间,但从长远来看,这是值得的。