I'm very new at iOS and Objective C and I'm trying to design something that it requires to take two consecutive pictures (and save them both) And just learned how to use the camera in iOS 5, so I was wondering how to implement something like that. I need to be able to open the camera, take a picture, save it and then automatically follows with the camera again to take another picture
P.D. I've been using this to use the camera:
- (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;
}
}