If I want to change the destination of a back button in the navigation bar. How can I accomplish this in Swift?
Asked
Active
Viewed 311 times
1
-
depends on what exactly you want to go. U can set a custom navigationController and implement its delegate methods. – Ramy Kfoury Apr 27 '15 at 08:31
1 Answers
1
You can't change it as is, but you can use the following method
func setViewControllers(viewControllers: [AnyObject]!, animated: Bool)
Instead of just push
new viewController
you set a new array then back button will navigate to the viewController
that is last but one in the current stack

Azat
- 6,745
- 5
- 31
- 48