Now, your user interface is only filled with dummy data and the video background is only able to play one video. That is what you are going to change now. With the information from the OpenWeatherMap API, you can move forward to populate the different UIKit components with life. To test your app and to see different weather conditions, you are also going to change the Apple TV simulator’s location.
- [Tutor] We know the user's location, we have weather data,…so let's display it on the user interface…and to do so, we're going to create a new function,…I've already created a new section of code here,…that we can jump to, just call it UI Updates…and the function that we are going to create…is called updateUI…and we're going to give it one parameter called index,…so that we can update the UI, based on the current day,…that we want to get the weather forecast for…and very important now, is that we get…the correct weatherObject from our array,…remember we have this weatherArray…with all of the weatherData available…and here we're just using the weatherObject,…using the weatherArray and accessing it with records…and the index to get the correct weatherObject…and since we now want to perform updates…off the user interface,…we again need to do that on the main thread,…so DispatchQueue.main.async…and in this code block, we will now access…all of the UI elements, that we've created,…for example, the tempLabel.text…
- The Siri remote
- The focus model
- Adding video assets and imagery
- UIKit components
- Location services
- Accessing a Web API
- Enabling the top shelf and layered images
- Setting up shortcuts
- Communicating with URL schemes
- Adding a layered app icon
Skill Level Beginner
Learning Apple watchOS 3 App Developmentwith Steven Lipton2h 41m Intermediate
iOS App Development: Test-Driven Developmentwith Harrison Ferrone2h 14m Intermediate
1. Introducing tvOS Development
2. Your First tvOS App: Build the UI
3. Your First tvOS App: Add the Logic
4. Final Touches
Next steps1m 18s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.