如何在从相机拍摄照片后跳过“重新拍摄并使用”选项或如何更改这些按钮的字体和颜色。
我们使用了以下代码
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/