So let me give an overview of the setup I have first. I have a UITabBarController with three tabs, each tab is a UINavigationController. In the third tab I have a UINavigationController with a rootViewController. I then was able to push another view controller to the UINavigationController, lets say that this view controller that is pushed is referred as 'Y'. In this Y view controller I am also capable of showing a modal view controller. So I did:
Code:
[self presentModalViewController:login animated: YES]
where login here is just another UIViewController. I can present the modal view controller just fine, and when I try to dismiss it I do
Code:
[self dismissModalViewControllerAnimated:YES];
However, this does not dismiss the modalviewcontroller (I checked and this is actually called). So what is the solution to this?