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 ...

Get Learn WatchKit for iOS now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.