Created
December 31, 2011 21:11
-
-
Save hamrickdavid/1545353 to your computer and use it in GitHub Desktop.
Changing the UINavigationController animation style
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CATransition *transition = [CATransition animation]; | |
transition.duration = 0.3f; | |
transition.timingFunction = [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseInEaseOut]; | |
transition.type = kCATransitionFade; | |
[self.navigationController.view.layer addAnimation:transition forKey:nil]; | |
[self.navigationController pushViewController:nextVC animated:NO]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment