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

Meet the Interface Objects

If this were a book on iOS in general and this chapter were the chapter on UIView, it would be insane to begin with a list of all of the UIView subclasses. Lucky for us, this is a book on WatchKit, and there are only 11 subclasses of WKInterfaceObject to deal with. Expect this number to grow as WatchKit matures, much like the iPhone SDK matured as it became the iOS SDK. I’ll divide the interface objects into three categories: objects that display data; objects that receive user input; and objects used for layout. Let’s meet our interface objects!

Objects That Display Data

We’ve already seen one of these interface objects: WKInterfaceLabel, which we used to display “Hello, Watch!” to our users. Labels act much like ...

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