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.
TableViews on tvOS
- [Instructor] Our next mission is to populate this table view controller from which you can't see anything at the moment. The reason for that is because we haven't configured it yet, and what we want to place there is the dates for which we can get a weather forecast. And if we have a look at our storyboard one more time, if you remember, when we created this table view or when we configured this cell, then we also gave this cell a reuse identifier. Table view controllers are great because they're pretty damn fast, and the system reuses the cells even if they're off screen. So, they're going to be repopulated with data and the system takes complete care of that. So let's just quickly have a look at how we can populate this table view. I've opened up the search table view controller again, and as you can see, this is a UI table view controller subclass. An X-code automatically created a lot of template code for us that we can use. There are three functions that are very important for…
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
-
-
-
-
-
(Locked)
Demo API and some helpers3m 29s
-
(Locked)
A video background11m 8s
-
(Locked)
Set up location services8m 36s
-
(Locked)
Handle location updates4m 42s
-
(Locked)
Get weather data for the user's location6m 23s
-
(Locked)
Update the UI with weather data6m 30s
-
(Locked)
Forecast for more than one day6m 43s
-
(Locked)
Text entry on tvOS: Search for locations6m 34s
-
(Locked)
TableViews on tvOS5m 11s
-
(Locked)
UISplitViewController in action7m 23s
-
(Locked)
-
-
-