-
Notifications
You must be signed in to change notification settings - Fork 472
Creating a Custom Navigation Bar
Roger Hu edited this page Oct 18, 2017
·
2 revisions
Often times, we want to create our own Navigation Bars in order to get the right look for our app.
- With the NavigationController selected, go to the properties pane and uncheck, "Show navigation bar".
- Drag an ImageView containing your custom navigation bar image to the top of each ViewController.
- Add a button on top of the "Back" part of the navigation bar image and delete the button text.
- Create a new ViewController Swift file. Creating Custom View Controllers
- Add an action from your back button. Configure a Button
- Add code to go back to the previous ViewController.
navigationController!.popViewControllerAnimated(true)
Using Navigation Controllers