From the course: Learning Apple tvOS App Development

Unlock the full course today

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

Connect the UI with your code

Connect the UI with your code

From the course: Learning Apple tvOS App Development

Start my 1-month free trial

Connect the UI with your code

- [Instructor] So far, we already have a great user interface but no way to add some real code to give our app functionality. This is going to change now because we're adding three subclasses and we're connecting our user interface to these Swift files. First of all, we already have a FirstViewController. We could rename it or we just delete that one. This is going to be the view controller for your location that is going to display the user's current location weather forecast, and I'm going to select my AppDelegate.swift file so that when I create a new file that it's added right below that. I'm pressing command on the keyboard now and I'm adding a new Cocoa Touch Class here. This first one is going to be YourLocationViewController and this is going to be a subclass of UIViewController. So, I hit next and create that one. Just make sure that you activate weather as a target here so that this class is added to our project and now let's add another one, which is going to be for our…

Contents