I simply push detail view controller in my app, but what I want is to speed up a little bit animation. I know that default time is 0.35, but can I somehow change that value for pushing another view controller? Code in Swift or Objective-C will be appreciated
Asked
Active
Viewed 2,149 times
2
-
[This](http://stackoverflow.com/questions/28023528/how-do-i-change-the-uinavigationcontroller-push-transition-style) might be useful to you... – Ahmad F Jan 11 '17 at 11:21
-
@AhmadF what is that ? may be you forgot to add link – Suraj Sukale Jan 11 '17 at 11:22
-
I edited it. Also, you might want to check [Customizing the Transition Animations](https://developer.apple.com/library/content/featuredarticles/ViewControllerPGforiPhoneOS/CustomizingtheTransitionAnimations.html) – Ahmad F Jan 11 '17 at 11:25
1 Answers
0
try like :
UIView.animateWithDuration(0.70, animations: { () -> Void in
UIView.setAnimationCurve(UIViewAnimationCurve.EaseInOut)
self.navigationController!.pushViewController(nextView, animated: false)
UIView.setAnimationTransition(UIViewAnimationTransition.FlipFromRight, forView: self.navigationController!.view!, cache: false)
})

Suraj Sukale
- 1,778
- 1
- 12
- 19