Creating a custom title view

In order to add anything into our title view, we must first add a UIView. They are containers into which you can put other UI elements.

Adding a container

Perform the following steps for adding a container:

  1. In the filter field of your Utilities panel, type—uiview.
  2. You will see View at the bottom. Drag and drop this into your Explore navigation bar:
    Adding a container

    Tip

    A way to confirm that you have dragged and dropped items into the proper place is to go to Outline view and see that the new item has been added under the correct label.

  3. You will see it highlighted when you are inside of it:
  4. With the View selected, go to the Utilities panel and ...

Get iOS 10 Programming for Beginners 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.