Starting a new thread… about same question.. I have tried all I am getting from different post and forums… none of the working for me..
What I want to do is…
[self presentModalViewController:ViewControllerA animated:YES];//Working fine
//Inside viewControllerA call viewControllerB
[self presentModalViewController:ViewControllerB animated:YES];//Working fine
//Dismiss both the Controllers. and present View
C
I tried.
- Dismissing viewControllerA before presenting ViewControllerB // which directly going to view C
- Dismissing viewControllerA in viewControllerB // No results.
//DismissViewController should dismiss all stack.. but not working for me so I tried - Dismissing both viewContrller in viewControllerB //still it shows viewContrllerA
OMG…it’s confusing..
Here is what I did.. not a good solution but works for now.. 🙂
///ViewDidLoad
[self presentModalViewController:ViewControllerA animated:YES];//Working fine
//inside ViewController A
[self dismissModalViewControllerAnimated:NO];
//ViewWillAppear
[self presentModalViewController:ViewControllerB animated:YES];//Working fine
//inside ViewController B
[self dismissModalViewControllerAnimated:NO];