I am looking for a way to cancel all ongoing modal transition.
I need to push a new view controller at any time of the life cycle of my app, therefore I can't rely on viewDidAppear delegate to start the presentation of this new view.
When one modal transition is already happening and I try to push (with animation) a new controller, I get the "Terminating app due to uncaught exception NSInternalInconsistencyException', reason: 'Attempting to begin a modal transition from to while a transition is already in progress. Wait for viewDidAppear/viewDidDisappear to know the current transition has completed
crash.
My only alternatives are to push the new controller without animation, or find a way to cancel all pending modal transitions.
Any help?