Creating a custom container view controller

Container view controllers allow you to split up the functionality of your application into smaller units, which can be useful for the maintenance and flexibility of your code base. You have used a couple of container view controllers in other projects: UITabBarController and UINavigationController. Now you will create a new container view controller.

The container you will create will have an emoji selection control along the bottom of the screen where the user can select and add new mood entries. This container will contain another view controller that will be responsible for adding and displaying the list of mood entries.

Creating the MoodSelectionViewController

Start by creating ...

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.