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

Chapter 4Displaying Your Watch App UI

Our HelloWatch example from the previous chapter worked, but it’s not winning an Apple Design Award any time soon. We need more than just a button and a label in our WatchKit apps. We’re in luck, as WatchKit offers a bevy of built-in user-interface components. These UI components, called interface objects in WatchKit, inherit from the WKInterfaceObject class, similar to UIView in iOS. WatchKit has a unique layout system more akin to HTML tables than iOS views, though. Let’s take a quick tour of interface objects and how they’re used, then explore how they differ from UIView and its subclasses. By the end of this chapter, you’ll have a better understanding of what UI components are available to you in WatchKit, ...

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