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


    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 O’Reilly online learning.

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