I have the following code:
SecondViewController *secondView = [[SecondViewController alloc] initWithNibName:@"SecondViewController" bundle:nil];
[imagePicker setSourceType:UIImagePickerControllerSourceTypeCamera];
[imagePicker setCameraOverlayView:secondView.view];
[imagePicker setShowsCameraControls:NO];
[self presentModalViewController:imagePicker animated:YES];
My question is: How can I dismiss the ModalViewController from "SecondViewController"?
You must call the following on
imagePicker
from aUIImagePickerControllerDelegate
method insecondView
.For example: