David House

Using Container Views to Manage Complex Layouts

David House | Feb 05, 2019

When you have a complex view controller view, sometimes it is helpful to break up the view into manageable chunks. We’ll show you how easy it is to break up the implementation of a single view controller into multiple views just by using container views. Using container views can encourage code reuse as well as simplifying complex view controllers. In this video, we will show how you can use container views to simplify the construction of certain layouts.

After this screencast, you'll be able to:

- Use container views in your application effectively
- Simplify a complex view controller view
- Use container views to encourage code reuse

Basic knowledge or experience building iOS applications is recommended.

For the More Curious...

BNR Guide to iOS
BNR Guide to Swift
iOS & Swift Courses

Subscribers Only

Transcripts are for subscribers. Create an account today to access our collection of screencasts, skill packs, and more.

Subscribers Only

Project files are only available for subscribers. Create an account today to access our collection of screencasts, skill packs, and more.

Need Help?

If you get stuck, try starting a discussion with Big Nerd Ranch experts in the community tab.

Related Screencasts

Explore other screencasts related to this topic.

Interstitial Content Markers

7 minutes

Video content frequently contains interstitial content such as advertisements or interludes. In this video we will explore the AVKit provided classes for marking interstitial points in your videos.

Create a Welcome Message on Initial Launch

8 minutes

Performing tasks when an application is first launched is a common practice to give users important information about the application. In this video, we will discuss one technique for implementing first launch logic, as well as how to quickly test this code.

Looping Multiple Videos on AppleTV

11 minutes

The Apple TV can be setup as a Kiosk that plays a series of videos on a loop at a business or school location. In this video, we will use AVFoundation to allow the videos to play one after the other in an infinite loop.

Controlling Video Player Dismissal

8 minutes

When a video is playing full screen on tvOS, by default it will capture pressing menu on the Siri remote and will dismiss the video player. In this video we will discuss how to change this behavior and why you might want this extra control.

Finding and Fixing Memory Issues

7 minutes

Incorrectly managing memory in our applications can result in hard to find bugs and possible crashes. In this video, we will explore the Memory Graph debugging tool in Xcode and how you can use it to find and fix strong reference cycles in closures.

Protocol Oriented Dependency Injection

8 minutes

Tight coupling between view controllers in your application can lead to difficult maintenance as you add and remove features. This video will explore how using Protocols can make our Dependency Injection more loosely coupled. This improves the flexibility of the code and makes our application easier to change.