I am presenting a modal presentation controller using a custom transition (by setting its modelPresentationStyle to a UIModalPresentationCustom , providing a transition delegate and a UIViewControllerAnimatedTransitioning object).
In the presented view controller, I have a disconnect button connected to the button. Sege works very well; The IBAction method in the view controller view is called, as well as prepareForSegue in the presented view controller. However, the presented view controller is not rejected, and the corresponding delegate delegation method ( animationControllerForDismissedController: not called.
If, however, I set the presented view controller modalPresentationStyle to UIModalPresentationFullScreen (by default), the view controller rejects properly (this, however, violates my user transition).
I have a complete loss of what to do here. I looked at the Apple documentation and didnβt notice anything, saying that it was necessary to do special things using decoupling when working with custom transitions.
I know that I could call dismissViewControllerAnimated:completion: in the IBAction method for the view presentation controller, but I would prefer to use it as a last resort and make it unwind the work as it should (or at least know why it doesn't work :)).
Any help would be greatly appreciated
Thanks in advance
ios uiviewcontroller unwind-segue
baxterma
source share