O'Reilly logo

Learn WatchKit for iOS by Kim Topley

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    3

Watch User Interface Objects

In Chapter 2, you learned how to add user interface objects to your storyboard and how to use features of the WKInterfaceController and WKInterfaceGroup classes to control the size and positioning of those objects. In this chapter, we discuss in some detail two user interface objects that you’ll use very frequently—WKInterfaceLabel and WKInterfaceImage. Along the way, you’ll find out more about how to control the layout of text, how to use the built-in fonts and custom fonts, and how to work with both static and animated images.

Overview

All of the WatchKit user interface objects are based on the WKInterfaceObject class, which declares a small number of common attributes. You have already seen some of ...

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