Editing Data

Most of the data for a car can be edited. You need to provide scenes for editing the different attributes of a car starting with the make and model. Both items are text-based, at least for now, so both can use the same kind of scene. Follow these steps:

1. Drag a UIViewController to the right of the view car scene.

2. Add a UINavigationBar near the top and set the leading and trailing constraints to 0. Drag from the top of the navigation item into the top area. Depending on how high up the navigation bar is, you will either set the Top Space to Top Layout Guide, or the vertical space to the layout guide. Either way, make the connection and then change the value of the constraint to 0.

Also, give the bar an appropriate tint. You can ...

Get Learning iOS Development: A Hands-on Guide to the Fundamentals of iOS Programming now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.