Book Image

Building Apple Watch Projects

By : Stuart Grimshaw
Book Image

Building Apple Watch Projects

By: Stuart Grimshaw

Overview of this book

With Apple’s eagerly anticipated entry into the wearable arena, the field is wide open for a new era of app development. The Apple Watch is one of the most important technologies of our time. This easy-to-understand book takes beginners on a delightful journey of discovering the features available to the developer, right up to the completion of medium-level projects ready for App Store submission. It provides the fastest way to develop real-world apps for the Apple Watch by teaching you the concepts of Watch UI, visual haptic and audio, message and data exchange between watch and phone, Web communication, and finally Visual, haptic as well as audio feedback for users. By the end of this book, you will have developed at least four fully functioning apps for deployment on watchOS 2.
Table of Contents (17 chapters)
Building Apple Watch Projects
About the Author
About the Reviewer

Making use of code snippets

Lots of code that you write gets written over and over again. A very convenient place to store frequently used code is in the Code Snippet Library (Command-Option-Control-2).The image below shows the details of a snippet that has been assigned a keyboard shortcut. When this snippet is inserted, the cursor is placed at the text, ready for typing.

To create a new snippet, select the relevant code in the source code editor and then drag it onto the Code Snippet Library.

After a while, you'll find that you have a substantial number of keyboard shortcuts at your command for typing code that you use frequently. Although the example shown above is very short (and trivial), there is no reason not to create much larger snippets, which, for example, could stub a set of the WKInterfaceTable callback methods.