I\'m dismissing a modal view controller and then immediately presenting another one, but the latter never happens. Here\'s the code:
[self dismissModalViewContro
In this case, I create delegate to callback parent view controller to show the second modal view controller.
Definition protocol of the parent view controller:
@protocol ParentViewControllerDelegate
- (void)showModalTwo;
@end
I implement this protocol in the parent view controller to show the second modal view controller and create the delegate property @property id on the first modal view controller.
Show the first modal view controller from parent view controller:
TheFirstModalViewController *controller = ...
controller.delegate = self;
[self presentViewController:controller animated:YES completion:nil];
...
On viewDidDisappear: method of the first modal view controller, just call delegate.showModalTwo: to show the second modal view from parent view controller.
Hope this help.