O'Reilly logo

Developing for Apple Watch by Jeff Kelley

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Adding Detail to a Screen

The Go Running screen in our TapALap app is pretty bare at the moment—just a green button. There’s more information we want to display on this screen: the track on which the user is about to run (with the ability to edit it) as well as some stats about the runner’s overall performance. Let’s do the performance stats first.

Using Groups for Advanced Layout

Your users will want to know how many runs they’ve been on and their average pace. To that end, you’ll add one group for each of those topics to the interface controller. Drag out a new group and add two labels to it. This will be the group for the number of times the user has run using our app. Change the text of the first label to a number—I use 5 in my example—so ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required