CAT transitions can be used to animate transitions in navigation controllers while drilling. However, when you use the back and navigation buttons (backward), the animation is still disabled. Does anyone know how to connect the CAT transition to the Back button on the navigation controller? thanks.
The code used for the animation when drilling is:
CATransition *transition = [CATransition animation]; transition.duration = 1; transition.timingFunction = [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseInEaseOut]; transition.type = kCATransitionPush; transition.subtype = kCATransitionFromTop; transition.delegate = self; [self.navigationController.view.layer addAnimation:transition forKey:nil];
source share