UIImagePickerController - 避开“预览”屏幕

时间:2010-07-18 01:00:38

标签: iphone uiimagepickercontroller

当我使用UIImagePickerController拍照时,拍照后它总是带我到预览屏幕,其中显示“重拍”或“使用”。有没有办法避免进入这个屏幕?即使我使用自定义覆盖屏幕,并且我将picker.allowsEditing设置为FALSE,它仍然会将我带到此屏幕。我见过其他应用程序避免进入预览屏幕,所以我该怎么做?

这是我正在使用的代码:

FrontOverlayView *overlay = [[FrontOverlayView alloc] initWithFrame:CGRectMake(0,0,320,460)];
UIImagePickerController *picker = [[UIImagePickerController alloc] init];
picker.sourceType = UIImagePickerControllerSourceTypeCamera;
picker.delegate = self;
picker.allowsEditing = NO;
picker.cameraOverlayView = overlay;
[self presentModalViewController:picker animated:YES];
[picker release];
[overlay release];

1 个答案:

答案 0 :(得分:5)

picker.showsCameraControls = NO;

应该这样做。