You need to use:
[self.navigationController popToRootViewControllerAnimated:YES];
This will bring you back to the root view controller.
If you want to navigate back to previous view controller, you should implement:
[self.navigationController popViewControllerAnimated:YES];
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…