your 1st apple watch application
TRANSCRIPT
![Page 1: Your 1st Apple watch Application](https://reader033.vdocuments.mx/reader033/viewer/2022042716/55b1106fbb61eb192e8b45fa/html5/thumbnails/1.jpg)
Apple WatchYour first application
iOS Practice LeadersAlexey Chulochnikov
![Page 2: Your 1st Apple watch Application](https://reader033.vdocuments.mx/reader033/viewer/2022042716/55b1106fbb61eb192e8b45fa/html5/thumbnails/2.jpg)
Agenda
• Watch App architecture• Apple watch interfaces• Initial impressions
![Page 3: Your 1st Apple watch Application](https://reader033.vdocuments.mx/reader033/viewer/2022042716/55b1106fbb61eb192e8b45fa/html5/thumbnails/3.jpg)
WatchKit App and extensioncommunication
Apple Watch
WatchKit App
WatchKit
Storyboard
Resources
iPhone
WatchKit Extension
WatchKit
Code
Resources
![Page 4: Your 1st Apple watch Application](https://reader033.vdocuments.mx/reader033/viewer/2022042716/55b1106fbb61eb192e8b45fa/html5/thumbnails/4.jpg)
WatchKit App Life Cycle
![Page 5: Your 1st Apple watch Application](https://reader033.vdocuments.mx/reader033/viewer/2022042716/55b1106fbb61eb192e8b45fa/html5/thumbnails/5.jpg)
Launching a WatchKit app
Load initial interface controller
Launch WatchKit app
Initialize UI Display UI
Storyboard
Interface controller
init willActivate
awakeWithContext:
watchKit extensio
n
![Page 6: Your 1st Apple watch Application](https://reader033.vdocuments.mx/reader033/viewer/2022042716/55b1106fbb61eb192e8b45fa/html5/thumbnails/6.jpg)
Interface controllerslife cycle
Display UIUser interacts
with UIUser stops interacting
willActivatevarious action
methods didDeactivate
Suspend extension
Interface controller
![Page 7: Your 1st Apple watch Application](https://reader033.vdocuments.mx/reader033/viewer/2022042716/55b1106fbb61eb192e8b45fa/html5/thumbnails/7.jpg)
UI elements
![Page 8: Your 1st Apple watch Application](https://reader033.vdocuments.mx/reader033/viewer/2022042716/55b1106fbb61eb192e8b45fa/html5/thumbnails/8.jpg)
Groups
![Page 9: Your 1st Apple watch Application](https://reader033.vdocuments.mx/reader033/viewer/2022042716/55b1106fbb61eb192e8b45fa/html5/thumbnails/9.jpg)
Maps
![Page 10: Your 1st Apple watch Application](https://reader033.vdocuments.mx/reader033/viewer/2022042716/55b1106fbb61eb192e8b45fa/html5/thumbnails/10.jpg)
Date & Timer Labels
![Page 11: Your 1st Apple watch Application](https://reader033.vdocuments.mx/reader033/viewer/2022042716/55b1106fbb61eb192e8b45fa/html5/thumbnails/11.jpg)
Menus
![Page 12: Your 1st Apple watch Application](https://reader033.vdocuments.mx/reader033/viewer/2022042716/55b1106fbb61eb192e8b45fa/html5/thumbnails/12.jpg)
App Components
![Page 13: Your 1st Apple watch Application](https://reader033.vdocuments.mx/reader033/viewer/2022042716/55b1106fbb61eb192e8b45fa/html5/thumbnails/13.jpg)
Glances
![Page 14: Your 1st Apple watch Application](https://reader033.vdocuments.mx/reader033/viewer/2022042716/55b1106fbb61eb192e8b45fa/html5/thumbnails/14.jpg)
NotificationsShort looks
![Page 15: Your 1st Apple watch Application](https://reader033.vdocuments.mx/reader033/viewer/2022042716/55b1106fbb61eb192e8b45fa/html5/thumbnails/15.jpg)
NotificationsLong looks
![Page 16: Your 1st Apple watch Application](https://reader033.vdocuments.mx/reader033/viewer/2022042716/55b1106fbb61eb192e8b45fa/html5/thumbnails/16.jpg)
WatchKit to iOS
![Page 17: Your 1st Apple watch Application](https://reader033.vdocuments.mx/reader033/viewer/2022042716/55b1106fbb61eb192e8b45fa/html5/thumbnails/17.jpg)
iOS to WatchKit
![Page 18: Your 1st Apple watch Application](https://reader033.vdocuments.mx/reader033/viewer/2022042716/55b1106fbb61eb192e8b45fa/html5/thumbnails/18.jpg)
Adding Handoff to the Glance
inform WatchKit that there’s a user activity going on
Handle user activity
![Page 19: Your 1st Apple watch Application](https://reader033.vdocuments.mx/reader033/viewer/2022042716/55b1106fbb61eb192e8b45fa/html5/thumbnails/19.jpg)
Passing Segue Data
![Page 20: Your 1st Apple watch Application](https://reader033.vdocuments.mx/reader033/viewer/2022042716/55b1106fbb61eb192e8b45fa/html5/thumbnails/20.jpg)
Receiving Context Data
![Page 21: Your 1st Apple watch Application](https://reader033.vdocuments.mx/reader033/viewer/2022042716/55b1106fbb61eb192e8b45fa/html5/thumbnails/21.jpg)
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