Adding a Camera Button
In this section, you will add a way for the user to initiate the photo selection process. You will create an instance of UIToolbar, add a camera button to the toolbar, and place the toolbar at the bottom of DetailViewController’s view.
Open LootLogger.xcodeproj and navigate to Main.storyboard. In the detail view controller, select the bottom constraint for the outer stack view and press Delete to remove it. The stack view will resize itself, which will make some room for the toolbar at the bottom of the screen.
Now, drag a toolbar from the library and place it near the bottom of the view. Make sure it is above the Home indicator (the black bar along the bottom of the screen, shown in Figure 14.4).
Figure ...
Get iOS Programming: The Big Nerd Ranch Guide, 7th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.