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
From the course: Learning Apple tvOS App Development
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…
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.
Contents
-
-
-
-
What you are going to create2m 46s
-
(Locked)
Set up the ViewController hierarchy2m 51s
-
(Locked)
Understand UISplitViewController4m 48s
-
(Locked)
Add video assets and imagery2m 43s
-
(Locked)
Add different UIKit components7m 52s
-
(Locked)
Set up a TableViewController5m 57s
-
(Locked)
Connect the UI with your code5m 30s
-
-
-
-
-