Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Building Apple Watch Projects

You're reading from  Building Apple Watch Projects

Product type Book
Published in Feb 2016
Publisher Packt
ISBN-13 9781785887369
Pages 298 pages
Edition 1st Edition
Languages
Author (1):
Stuart Grimshaw Stuart Grimshaw
Profile icon Stuart Grimshaw

Table of Contents (17) Chapters

Building Apple Watch Projects
Credits
About the Author
About the Reviewer
www.PacktPub.com
Preface
Exploring the New Platform Hello Watch C-Quence – A Memory Game Expanding on C-Quence On Q – A Productivity App Watching the Weather Plot Buddy – All about Location Images, Animation, and Sound Wear It, Test It, Tweak It, Ship It This Is Only the Beginning Index

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.

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}