
By Kim Topley
Study WatchKit for iOS covers the advance of purposes for the hot Apple Watch utilizing the WatchKit framework in iOS eight and the speedy programming language. during this booklet, an Apple Watch software is an extension to an latest iOS app and is packaged and submitted to the App shop besides it. utilizing a set of easy examples, Kim Topley, co-author of starting iPhone improvement with fast, introduces and explains each characteristic of WatchKit and the linked applied sciences that you’ll have to comprehend to construct Apple Watch functions for iOS eight, culminating in a whole WatchKit program that exhibits climate forecast details for varied towns all over the world at the Apple Watch.
What you’ll learn
easy methods to construct an software for the Apple Watch as an extension of an current iOS app.
how one can use the entire positive factors of the WatchKit framework in iOS 8.
how one can combine your Watch app with its web hosting iOS app and the way to speak among them.
find out how to construct a look to your WatchKit app to take advantage of worthy info extra simply on hand in your users.
easy methods to deal with notifications.
find out how to use handoff to permit the consumer to quick swap on your WatchKit app from its look or while dealing with a notification.
easy methods to construct, try out and debug your Watch App at the simulator and on a true watch.
Who this publication is for
This e-book is for latest iOS builders who are looking to comprehend and use WatchKit to increase their software onto the Apple Watch. Readers are assumed to have uncomplicated wisdom of iOS development.
Table of Contents
Chapter 1. Welcome to the Apple Watch
Chapter 2. Interface Controllers and Layout
Chapter three. Watch consumer Interface Objects
Chapter four. extra Watch person Interface Objects
Chapter five. Controller Navigation
Chapter 6. Tables and Menus
Chapter 7. development a WatchKit App
Chapter eight. Glances, Settings, and Handoff
Chapter nine. Notifications
Read Online or Download Learn WatchKit for iOS PDF
Best nonfiction_1 books
A hugely polished open and freely to be had obtain capable cross-genre position taking part in video game rule set from the early Nineteen Nineties. really worth a look.
"
- 25 Ways To Suppress Truth - The Rules of Disinformation
- Natural genius. The gifts of Asperger's Syndrome ISBN 1843107848-o
- CPU (August 2005)
- A Periodic Table of the Structure of Atoms and Its Relation to Ion-Formation and Valence
- Shakti Mantras: Tapping into the Great Goddess Energy Within
- When All Hell Breaks Loose: Stuff You Need To Survive When Disaster Strikes
Extra resources for Learn WatchKit for iOS
Example text
Adjusting row spacing for the 42mm device This looks better, but it’s not quite perfect—there’s still too much space above the label at the top of the screen. We can reduce that by changing the value of the top inset. Make sure the interface controller is selected in the storyboard, click the + icon next to the Top attribute in the Attributes Inspector, and select Apple Watch 42 mm. This adds extra input fields for each of the four inset values. Change the value of the 42mm Top input field from 8 to 4 and you’ll see that everything the 42mm layout in the preview moves up, as shown in Figure 2-17.
Figure 2-12. Selecting a larger smiley face image for the 42mm screen Select the Apple Watch 42 mm option, and a new selector labeled 42mm appears below the existing one, as shown on the right in Figure 2-12. From this new selector, choose SmileyFaceLarge. Now the SmileyFaceLarge image will be used on the 42mm device, and the original SmileyFace image otherwise. Look back at the preview area and you’ll see that the 42mm device is using the larger image, whereas the 38mm device still has the smaller one (see Figure 2-13).
However, you should not rely on this. Interface Controller Layout Layout in WatchKit is much simpler than it is in UIKit. Whereas UIKit allows you complete control over the size and position of any view, WatchKit only allows interface objects to be arranged in rows or columns. Also, even though you can specify the size of most user interface objects, you don't have fine-grained control over positioning. Once you’ve designed the layout you want in the storyboard, WatchKit takes care of constructing the user interface at run time.