I have a navigation controller A on which i push the view controller B. From B i present modally the view controller C. After I dismiss C, I tried back to A. Therefore the Navigation flow is A->B -> (present ModalView) -> C. I tried without success this code in B:
self.navigationController?.popToRootViewControllerAnimated(true)
Any suggestion on how can i achieve this?
This case just happen in iOS7
Thank you
You have to dismiss modal view controller (C) and popToRootViewController in NavigationController. Try the code below in C View Controller:
In this case user will see just dismissing modal view controller. Pop to Root View Controller in Navigation Controller will be made in backgroud.
Another option is dismissing Modal View Controller and after that pop to the Root View Controller with animation, then user will see everything. Code for that below: