From the course: Apple watchOS 7 App Development Essential Training
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Launching a timeline - watchOS Tutorial
From the course: Apple watchOS 7 App Development Essential Training
Launching a timeline
- [Instructor] We've got a working timeline but doesn't work exactly the way we want. We want it to launch the pizza stages when we order a pizza. We're going to get that working next. So let's close up the app again. And this time we're going to start not in the complication controllers but now we're going to go to detail view. Because in detail view, if you remember correctly we have an order button right here. All right, I'm going to add something, the order button. And we'll start by just adding a new method called reloadTimeLine and we'll do everything else out of there. And what this will do is it'll reload the timeline so that it'll launch the timeline the way that we want it. Then I'm going to go up the top of the code I think, and I'm going to put it above this var here and put in a func reloadTimeLine. And now in this, I'm going to first of all reset now to the current date. Now, for testing, I launched 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.
Contents
-
-
-
-
-
-
(Locked)
What complications are4m 41s
-
Add launch complication images and symbols6m
-
(Locked)
Data providers8m 24s
-
(Locked)
Populate a complication template4m 25s
-
(Locked)
Challenge53s
-
(Locked)
Solution5m 11s
-
(Locked)
Configure sample templates4m 11s
-
(Locked)
Timeline entries3m 54s
-
(Locked)
Configure timelines5m 6s
-
(Locked)
Launching a timeline4m 10s
-
(Locked)
-
-
-