iphone - 从相机拍摄照片后如何跳过 'retake and use' 选项

标签 iphone ios objective-c camera

enter image description here

如何在从相机拍摄照片后跳过“重新拍摄并使用”选项或如何更改这些按钮的字体和颜色。

我们使用了以下代码

    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];
}

最佳答案

此 View 由 showsCameraControls 提供给您UIImagePickerController 类的属性

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

您的替代方法是使用 AVFoundation这将使您在外观和性能方面具有充分的灵 active 。虽然设置需要更多时间,但从长远来看会有所返回。

关于iphone - 从相机拍摄照片后如何跳过 'retake and use' 选项,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16012492/

相关文章:

iphone - 是否可以在 iPhone 应用程序中覆盖 sqlite 数据库

ios - 如何在 SwiftUI 中应用大于底层 View 的叠加层

有时不调用 iOS UIWebView webViewDidFinishLoad

ios - 更新 block 内的 UI

ios - 为 iTunes 创建通用应用程序?

iphone - 在iPhone中直播

iphone - 如何开始编写 iPad 应用程序?

ios - 是否有提供网络和磁盘缓存的 iOS 库?

objective-c - QLPreviewController 因大文档而崩溃

ios - iOS7正确实现iAds