O'Reilly logo

Learning iOS Development: A Hands-on Guide to the Fundamentals of iOS Programming by Erica Sadun, Rod Strougo, Maurice Sharp

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

CarValet: Adding a Tab Bar

For a storyboard, you add a tab bar controller the same way you add a navigation controller: Select the root-view controller or controllers and then select Editor > Embed In > Tab Bar Controller. The selected view controllers all have to be at the same level of an application. This means you cannot select both a navigation controller, such as the add/view scene controller, and a subview of that controller, such as the car image scene controller.

Next, you add a tab bar controller to the CarValet app and include tabs for the add/view, car image, and about scenes. First, add the tab bar controller:

1. Add the CH07 Assets TabBar Icons folder that comes as part of the code for Chapter 7 to the Images.xcassets.

2. Open the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required