I have a A viewController ,first, I present B viewController,after some work, I need to dismiss B viewController and present C viewController , so I use the following code in the A viewController:
UIViewController *gp = self.presentedViewController;
[gp dismissModalViewControllerAnimated:NO];
[self presentModalViewController:viewController animated:YES];
it works But I encountered a problem , when B viewController is dismissed ,the user always can see the A viewController, then the C viewController is presented.I want to avoid this issue to directly to C viewController directly! So what can I do?