Changes

Jump to: navigation, search

A watchOS 2 WatchKit Page-based Interface Tutorial

12 bytes removed, 20:57, 1 February 2016
m
Text replacement - "<google>BUY_WATCHOS2</google>" to "<htmlet>watchos2</htmlet>"
<googlehtmlet>BUY_WATCHOS2watchos2</googlehtmlet>
Figure 10-11
<googlehtmlet>BUY_WATCHOS2watchos2</googlehtmlet>
By default, the Timer object displays hours, minutes and seconds as numbers (referred to as positional format). A range of other configuration alternatives is available within the Attributes Inspector for changing both what is displayed on the timer and how it is displayed. It is, for example, possible to also display month, week, day and year values. It is also possible to change the way in which this information is displayed, including fully spelling out the time and date in words instead of numbers. Although this example will use the default setting, it is worth reviewing the options in the Attributes Inspector panel for future reference.
Locate and select the PageDemoApp WatchKit Extension entry in the Xcode Project Navigator panel, Ctrl-click on it and select the New File… menu option. Create a new watchOS WatchKit Class file named TimerInterfaceController subclassed from WKInterfaceController and proceed with the steps to generate the class source file into the PageDemoApp WatchKit Extension project folder.
<googlehtmlet>BUY_WATCHOS2watchos2</googlehtmlet>

Navigation menu