• Complain

Griffin Mark - Apple Watch for Developers: Advice & Techniques from Five Top Professionals

Here you can read online Griffin Mark - Apple Watch for Developers: Advice & Techniques from Five Top Professionals full text of the book (entire story) in english for free. Download pdf and epub, get meaning, cover and reviews about this ebook. City: Berkeley;CA, year: 2015, publisher: Apress, genre: Home and family. Description of the work, (preface) as well as reviews are available. Best literature library LitArk.com created for fans of good reading and offers a wide selection of genres:

Romance novel Science fiction Adventure Detective Science History Home and family Prose Art Politics Computer Non-fiction Religion Business Children Humor

Choose a favorite category and find really read worthwhile books. Enjoy immersion in the world of imagination, feel the emotions of the characters or learn something new for yourself, make an fascinating discovery.

Griffin Mark Apple Watch for Developers: Advice & Techniques from Five Top Professionals

Apple Watch for Developers: Advice & Techniques from Five Top Professionals: summary, description and annotation

We offer to read an annotation, description, summary or preface (depends on what the author of the book "Apple Watch for Developers: Advice & Techniques from Five Top Professionals" wrote himself). If you haven't found the necessary information about the book — write in the comments, we will try to find it.

Apple Watch for Developers: Advice & Techniques from 5 Top Professionals gives you the base-knowledge and valuable secrets youll need for your own projects from a core team of successful, experienced Apple Watch app-development experts. Youll explore elements such as branding within Watch apps, translating audio data into visual information, taming complex data, mastering environment-driven feature sets, and much more. This book is for developers who already have some knowledge of developing with WatchKit and WatchOS 2, and who are now interested in learning how to use them to create cutting edge Watch apps. It is written by five experienced, industry-leading Apple Watch developers who have created their apps early, and are now ready to pull apart examples to show you how to best create an Apple Watch app. This book will bring your cool Watch ideas to life!

Griffin Mark: author's other books


Who wrote Apple Watch for Developers: Advice & Techniques from Five Top Professionals? Find out the surname, the name of the author of the book and a list of all author's works by series.

Apple Watch for Developers: Advice & Techniques from Five Top Professionals — read online for free the complete book (whole text) full work

Below is the text of the book, divided by pages. System saving the place of the last page read, allows you to conveniently read the book "Apple Watch for Developers: Advice & Techniques from Five Top Professionals" online for free, without having to search again every time where you left off. Put a bookmark, and you can go to the page where you finished reading at any time.

Light

Font size:

Reset

Interval:

Bookmark:

Make
Gary Riches, Ruben Martinez Jr., Jamie Maison, Matt Klosterman, Mark Griffin 2015
Gary Riches , Ruben Martinez Jr. , Jamie Maison , Matt Klosterman and Mark Griffin Apple Watch for Developers 10.1007/978-1-4842-1338-4_1
1. An Apple Watch Introduction
Gary Riches 1, Ruben Martinez Jr. 1, Jamie Maison 1, Matt Klosterman 1 and Mark Griffin 1
(1)
Herts, UK
Back in September of 2014, Apple announced their first new product line since the iPad in 2010. In an unusual move for Apple, they gave developers access to the Apple Watch SDK, and the public information on a device that wasnt to ship for another seven months. The delay between announcement and release was important because although it was most likely production issues that caused the delay, the Apple Watch presents a new paradigm with different user interaction methods, and usage levels measured in seconds rather than minutes. Developers were able to start building apps for the Apple Watch with the SDK that Apple provided and quickly realized that the traditional ways of planning and building iOS apps wouldnt directly translate to the Apple Watch, so the time would be required to get a feel for what works and what doesnt.
The Apple Watch still has touch input, but also a mechanical way of scrolling with the Digital Crown and a new technology called Force Touch, which is able to detect varying levels of pressure on the Watchs screen. Some of the new technologies present are not accessible via Apples APIs yet, and in general WatchKit, Apples name for the Apple Watch-specific code, is a very cut down version of what it will eventually be. This is most likely to preserve battery on the Apple Watch, but the limitations should be embraced. The skills you will learn with WatchKit in terms of app optimization can be moved back up into your iOS app development process.
By now you should hopefully have your Apple Watch devices because the opportunity to test on real hardware is invaluable. If, however, you dont, then do what you can to simulate the Watch. There are some great paper templates available that you can print out and use, or apps such as WatchSim by Danny Keogan, which allow you to see a 1:1 image of the Watch on your iPhone that mirrors the Apple Watch simulator. Indeed, sometimes its faster to do it this way rather than deploying to real hardware each time.
Along with every major new Apple iOS or hardware release is the opportunity to be first to market, to capture the eyes of users eager to test the features of the new iOS, or to download apps that exploit the new devices features. The Apple Watch is going to be new for a good while yet, and the amount of apps currently in the App Store with Apple Watch support is a fraction of that in the main iOS App Store. All of these factors together mean that youll hopefully find more success, since there is a smaller pool of apps to choose from. It will be easier to be the best.
Lets look at the structure of an Xcode project to see what Xcode creates, where it gets created, and why.
Note
For Apple watchOS 2 the extension runs on the Apple Watch instead of the iOS device, and App Groups no longer work. Home Remote was written with Watch OS 1, and given that the feature list of watchOS 2 is not yet fully defined, well be using Watch OS 1 for the example here.
Anatomy of a WatchKit App
A WatchKit app is always bolted on to an existing iOS project, its just a different target. It has two distinct parts: the WatchKit extension and the WatchKit app, and they are both bundled within the iOS app. The WatchKit extension remains on your iOS device and does the work while the WatchKit app is copied to the Watchs internal storage along with the storyboard and any images or assets you included in the WatchKit app extension.
Your WatchKit app storyboard can contain any of three different types of controllers, and they are: Interface Controllers, Glance Interface Controllers, and Notification Interface Controllers. Lets look at these controllers one by one.
The Interface Controller
A single interface controller object manages each scene, which is an instance of the WKInterfaceController class. A WatchKit interface controller performs the same tasks as a view controller in iOS, it will present and manage content that is displayed on the screen, and it handles user interactions with the on-screen content. However, unlike a view controller, an interface controller doesnt manage the actual views of your interface-- all of that is handled for you behind the scenes by WatchKit. This is nice in the respect that its very simple to put a scene together quickly, but can make creating scenes more difficult if the layout you want doesnt fit in to the restrictions placed upon WatchKit apps.
WatchKit apps typically contain multiple interface controllers, with each one displaying some different information. The interface is primarily user input driven, in so much that a new interface controller is typically presented after the user has interacted with the screen or a button.
Figure 1-1 The interface of a WatchKit app Glance Interfaces A glance is a - photo 1
Figure 1-1
The interface of a WatchKit app
Glance Interfaces
A glance is a window into your app and should display an apps most pertinent information. Glances are named as such because theyre intended to be looked at quickly by the user. Theyre not made to scroll; the entire glance interface must fit on a single screen and they cannot contain buttons, switches, or other interactive controls. Xcode will throw an error if you do anything illegal with a glance. Glances appear when you swipe up from your Watch face, which means they are a quick and easy way to see part or all of your app. Tapping a glance launches your WatchKit app.
Even with all of the restrictions Apple places on glances, they are incredibly useful as a shortcut in to the app, even though Apple says you shouldnt create one solely for this purpose. You can only have one glance in your storyboard, but you can configure the information it displays based on context such as location, time of day, or user settings.
Figure 1-2 The Home Remote configurable Glance interface Notification - photo 2
Figure 1-2
The Home Remote configurable Glance interface
Notification Interfaces
The Apple Watch works with its paired iOS device to display local and remote notifications. By default, the Apple Watch uses a minimal interface to display incoming notifications. The user will receive Taptic feedback and upon raising their wrist they will see a very brief snippet of information. If the user holds their arm in place so that the display stays on, the minimal interface changes to a more detailed interface displaying the contents of the notification. This detailed interface is customizable and you can add your own graphics or arrange the notification data differently from the default interface provided by the system.
The Apple Watch notification system has support for the actionable notifications introduced in iOS 8 with no need for any extra work to implement. Actionable notifications are a way to add buttons to your notification interface that reflect the actions the user could take. For example, a notification for a Tweet directed at you might include buttons to reply, retweet, or favorite a tweet. When your iOS app registers support for actionable notifications, the Apple Watch automatically adds appropriate buttons to the notification interfaces on the Apple Watch. All you need to do is handle the actions that the user selects. You do this in your WatchKit extension.
Next page
Light

Font size:

Reset

Interval:

Bookmark:

Make

Similar books «Apple Watch for Developers: Advice & Techniques from Five Top Professionals»

Look at similar books to Apple Watch for Developers: Advice & Techniques from Five Top Professionals. We have selected literature similar in name and meaning in the hope of providing readers with more options to find new, interesting, not yet read works.


Reviews about «Apple Watch for Developers: Advice & Techniques from Five Top Professionals»

Discussion, reviews of the book Apple Watch for Developers: Advice & Techniques from Five Top Professionals and just readers' own opinions. Leave your comments, write what you think about the work, its meaning or the main characters. Specify what exactly you liked and what you didn't like, and why you think so.