If I simply call the push method with:
[self.navigationController pushViewController:viewController animated:YES];
then it uses a push animation. How do I change it to use a cross dissolve animation, like I can with a modal segue?
You can use a CATransition
as demonstrated in this answer:
CATransition* transition = [CATransition animation]; transition.duration = 0.5; transition.type = kCATransitionFade; [self.navigationController.view.layer addAnimation:transition forKey:nil]; [self.navigationController pushViewController:viewController animated:NO];
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With