Your 1st Apple watch Application

Preview:

Citation preview

Apple WatchYour first application

iOS Practice LeadersAlexey Chulochnikov

Agenda

• Watch App architecture• Apple watch interfaces• Initial impressions

WatchKit App and extensioncommunication

Apple Watch

WatchKit App

WatchKit

Storyboard

Resources

iPhone

WatchKit Extension

WatchKit

Code

Resources

WatchKit App Life Cycle

Launching a WatchKit app

Load initial interface controller

Launch WatchKit app

Initialize UI Display UI

Storyboard

Interface controller

init willActivate

awakeWithContext:

watchKit extensio

n

Interface controllerslife cycle

Display UIUser interacts

with UIUser stops interacting

willActivatevarious action

methods didDeactivate

Suspend extension

Interface controller

UI elements

Groups

Maps

Date & Timer Labels

Menus

App Components

Glances

NotificationsShort looks

NotificationsLong looks

WatchKit to iOS

iOS to WatchKit

Adding Handoff to the Glance

inform WatchKit that there’s a user activity going on

Handle user activity

Passing Segue Data

Receiving Context Data

More informationWatchKit App Architecturehttp://bit.ly/watchKit_app_architecture

App Componentshttp://bit.ly/app_components

UI Elementshttp://bit.ly/ui_elements

HipChathttp://bit.ly/ciklum_apple_watch

BitBuckethttps://bitbucket.org/WooD1k/watchcurrency

Slideshttp://bit.ly/ciklum_watch_slides

Recommended