From the course: iOS App Development: Design Patterns for Mobile Architecture

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Presenter conversion, part 2

Presenter conversion, part 2

From the course: iOS App Development: Design Patterns for Mobile Architecture

Start my 1-month free trial

Presenter conversion, part 2

- [Instructor] Next, let's look at the Detail View Controller. On line 36 you can see that this view controller is creating the next view controller. We've now pushed that responsibility off to the dependency registry. We're doing this by creating those maker methods. So let's go ahead and make a pointer to one of those now. I'll just say file private var s Dependency Registry dot Secret Details View Controller Maker. I'll use that as the name. These are very long names, but it's really not hard to copy and paste those. Self dot is equal to, in fact, we need to put this in that configure method. Collapse this one more. And we will be passing the CN. We'll infacto right here And recopy this 'cause this will be exactly that argument type. Let's go ahead and format these things a little bit better. Collapse that view so we can see things a little easier, too. I'm going to align those colons. Pull this in and put this on a new line just to make it a little bit easier to read. And then…

Contents