iphone - switching between 2 different view controllers that are presented modaly -
I would like to switch between a main UIViewController that startup that I have only been presented modaly 2 different view controllers Use is in use. Here is my code that list: In the first method, the switch works, but not in the second. I would love to understand why. Thank you!
- (minus) imagePickerController: (UIImagePickerController *) picker didFinishPickingMediaWithInfo: (NSDictionary *) info {[self dismissModalViewControllerAnimated: NO]; PreviewView * previewViewController = [[PreviewViewController alloc] initWithNibName: @ "PreviewView" bundle: nil]; Preview ViewController.delegate = self; [Self current model viewer: previewViewController animated: yes]; [PreviewViewController release]; } - (void) previewViewControllerdoneButtonPressed: (AnotherViewController *) controller {[self dismissModalViewControllerAnimated: YES]; Uiimagepikerkantrolr * Imagepiker = [[Uiimagepikerkantrolr light] Init]; ImagePicker.delegate = self; [Self current model visualizer: animated image picture]; [Image publication]; }
The second method allows you to dismiss the first own
Ask again a To present the new view controller again it is not correct to ask manually
. You want to ask 'Parents' of AnotherViewController to show UIImagePickerController.
One thing you can try is to dismiss hereafter at present.
Comments
Post a Comment