From the course: iOS Development Tips

Unlock this course with a free trial

Join today to access over 22,600 courses taught by industry experts.

The navigation bar and back title

The navigation bar and back title

From the course: iOS Development Tips

The navigation bar and back title

- [Instructor] The navigation bar is one of those things that seems simple but can be very tricky. The title and back button has given more than a few developers a bit of a headache figuring out how to use them. Let's look at how to use them correctly. I made a simple demo of a navigation controller, a root controller, and a child view controller. If you run the application you can press the button and head over to the watercolor of the lady. At the top you'll find the back button, which takes you back to the view controller. There's no titles here yet. Stop the app and let's set some titles. Head to the view controller. I did a little set up here. And in the view will appear in the prepare methods to the view controller. I'll start however in the view did load with the view controller's title property. And all I need to do here is type title equals gallery. Now go ahead and run this, I'm doing it again on an iPhone 8+. And you'll get the title and navigation bar. Now go ahead and…

Contents