0

我是 iOS 和 Objective C 的新手,我正在尝试设计一些需要连续拍摄两张照片(并保存它们)的东西,并且刚刚学会了如何在 iOS 5 中使用相机,所以我想知道如何实现类似的东西。我需要能够打开相机,拍照,保存,然后再次自动跟随相机拍摄另一张照片

PD 我一直在用这个来使用相机:

- (void) useCamera
{
if ([UIImagePickerController isSourceTypeAvailable:
     UIImagePickerControllerSourceTypeCamera])
{
    UIImagePickerController *imagePicker = [[UIImagePickerController alloc] init];
    imagePicker.delegate = self;
    imagePicker.sourceType = UIImagePickerControllerSourceTypeCamera;
    imagePicker.mediaTypes = [NSArray arrayWithObjects:(NSString *) kUTTypeImage,nil];
    imagePicker.allowsEditing = NO;
    [self presentModalViewController:imagePicker animated:YES];        
    newMedia = YES;
}

}
4

2 回答 2

0

提示:使用 AVCaptureDevice、AVCaptureDeviceInput、AVCaptureStillImageOutput、AVCaptureSession。

于 2012-10-15T23:40:28.107 回答
0

这 2 个链接可能会有所帮助。我自己对 iOS 编程还很陌生,但这看起来很有希望

iPhone被编程一次能多快拍两张照片?

iPhone SDK 4 AVFoundation - 如何正确使用 captureStillImageAsynchronouslyFromConnection?

于 2012-10-16T01:43:50.830 回答