I want to disable the animation when i pop a ViewController with the back button in NavigationController.
I tried:
override func viewWillDisappear(animated: Bool) {
super.viewWillDisappear(false)
}
But it still animates.
I want to disable the animation when i pop a ViewController with the back button in NavigationController.
I tried:
override func viewWillDisappear(animated: Bool) {
super.viewWillDisappear(false)
}
But it still animates.
If you want to custom animation maybe try this:
// with fade animations
// "◁" added this way: Edit -> Emoji & Symbols
In the Controller that you want to have that button:
Take into account that this way, you will lose the < icon on the back button (since you're overriding that button). However, I think it is not possible to have a custom behaviour and the < icon at the same time (unless you add the < icon as an image by yourself)
You can try this
viewWillDisappear()
doesnt handle the animation, its just.If you're using a
UINavigationController
If you're just using
UIViewController