I am newbie and developing a single view application for iPhone with various (A, B, C, D) view controller. Root view controller is A and other view controller are presented as
[self presentModalViewController:C animated:YES];
on some button click.
If the application suspends at C or any other view due to phone call or home button or any action and on resume i want to dismiss presented view (C or D or any) and present B .
What should i code? (on appDelegate.m) or Where??
You can use the
AppDelegatemethod:Update
Implement these two method in your
viewContoller, the first one for dismssing anyviewControlleryou are present by usingthen present your desired
viewController.Read the comment inside the method to understand what does it do.