I follow some tutorials for creating custom animations when moving from one view to another.
My test project using custom segue from here works fine, but someone told me that it is no longer encouraged to do custom animation in the user segment, and I should use UIViewControllerAnimatedTransitioning .
I followed several tutorials that use this protocol, but they all relate to modal presentations (like this tutorial ).
What I'm trying to do is click sega in the navigation controller tree, but when I try to do the same with show (push) segue, it no longer works.
Please tell me the correct way to make a custom transitional animation from one view to another in the navigation controller.
Still, can I use one method for all transition animations? It would be inconvenient if one day I want to make the same animation, but in the end I will have to duplicate the code twice to work on the transition from modal vs controller.
ios cocoa-touch custom-transition
AVAVT Oct 26 '14 at 3:22 2014-10-26 03:22
source share