I have a Navigation Controller with a View Controller displaying a button. The button is linked to another View Controller using a push segue which automatically adds a top navi
In swift you can also call:
self.navigationController?.popToRootViewControllerAnimated(true)