From the course: Building an iOS Messages Application
Unlock this course with a free trial
Join today to access over 22,400 courses taught by industry experts.
Connect UI objects to code
From the course: Building an iOS Messages Application
Connect UI objects to code
- [Instructor] The messages view controller class is made for handling the messages extension events. Like when we're transitioning to expanded or compact view. When the application becomes active or it's going to resign being active, et cetera. But we have our interactive buttons and text fields inside of other view controllers. We need some way to handle those events inside of the messages view controller class. And we're going to do that through delegation. We'll start by creating custom classes for the compact view controller and for the expanded view controller. So I'm going to go to file, new, file, and I'll choose under IOS cocoa touch class and hit next. This is going to be a UI view controller. We'll call this one compact view controller. That'll be for the compact view controller. I'll hit next. Make sure to add it to your extension target. And then hit create. And there's our class. And I want to group my classes together, so I'm going to just click and drag this up in the…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.