Adding User Interface Elements
If you select the watch app targetâs scheme in Xcode (by clicking HelloWatch in the toolbar and selecting HelloWatch WatchKit App, or selecting Product â Scheme â HelloWatch WatchKit App) and then you build and run (by pressing âR), youâll be greeted with a mostly blank Apple Watch screen with the time in the upper-right corner and nothing else. Congratulations: your first watch app is up and running! Now, letâs make it do something. Youâll add a button and a label to this screen; tapping the button will change the title of the label. Head to the watch appâs storyboard file in Xcode. If you donât see it, open the Project Navigator by pressing â1 and expanding the HelloWatch WatchKit App group; ...
Get Developing for Apple Watch, 2nd Edition 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.