ios: how to dismiss a modal view controller and then pop a pushed view controller
问题 I have a view controller B that is pushed onto the navigation stack by root view controller A and this view controller B needs to display an alternative view if its model is in a certain state so it is modally presenting another view controller C. When I dismiss view controller C I would also like to pop view controller B if that is also on the nav stack. I would like to do it in such a way that there is only 1 transition. Any ideas? 回答1: In the scenario you posted, the presenting view