curt clifton the omni group jan 8 2015 seattle xcoders 1
play

Curt CliftonThe Omni Group. Jan 8, 2015, Seattle Xcoders 1 - PowerPoint PPT Presentation

Curt CliftonThe Omni Group. Jan 8, 2015, Seattle Xcoders 1 Developing with WatchKit 1.0 Curt CliftonThe Omni Group. Jan 8, 2015, Seattle Xcoders 2 Developing with WatchKit 1.0 Curt Clifton, The Omni Group @curtclifton curtclifton.net


  1. Curt Clifton—The Omni Group. Jan 8, 2015, Seattle Xcoders 1

  2. Developing with WatchKit 1.0 Curt Clifton—The Omni Group. Jan 8, 2015, Seattle Xcoders 2

  3. Developing with WatchKit 1.0 Curt Clifton, The Omni Group @curtclifton curtclifton.net Curt Clifton—The Omni Group. Jan 8, 2015, Seattle Xcoders 3

  4. Outline — Conceptual model — Sample app Syncing data with  Watch — Debugging  Watch apps — — Some challenges — Other resources — Wish list Curt Clifton—The Omni Group. Jan 8, 2015, Seattle Xcoders 4

  5. Conceptual Model Curt Clifton—The Omni Group. Jan 8, 2015, Seattle Xcoders 5

  6. In WatchKit 1.0 your code runs in an extension on the iPhone . Curt Clifton—The Omni Group. Jan 8, 2015, Seattle Xcoders 6

  7. In WatchKit 1.0 your code runs in an extension on the iPhone . Curt Clifton—The Omni Group. Jan 8, 2015, Seattle Xcoders 7

  8. All the WatchKit classes fit on one slide that you can read. Curt Clifton—The Omni Group. Jan 8, 2015, Seattle Xcoders 8

  9. All the WatchKit classes fit on one slide that you can read. Curt Clifton—The Omni Group. Jan 8, 2015, Seattle Xcoders 9

  10. All the WKInterfaceObjects are proxies for views on the watch. Curt Clifton—The Omni Group. Jan 8, 2015, Seattle Xcoders 10

  11. All the WKInterfaceObjects are proxies for views on the watch. Curt Clifton—The Omni Group. Jan 8, 2015, Seattle Xcoders 11

  12. All the WKInterfaceObjects are proxies for views on the watch. Curt Clifton—The Omni Group. Jan 8, 2015, Seattle Xcoders 12

  13. Conceptual Model — In WatchKit 1.0 your code runs in an extension on the iPhone . — All the WKInterfaceObjects are proxies for views on the watch. Curt Clifton—The Omni Group. Jan 8, 2015, Seattle Xcoders 13

  14. Sample App Curt Clifton—The Omni Group. Jan 8, 2015, Seattle Xcoders 14

  15. Syncing Data with  Watch Curt Clifton—The Omni Group. Jan 8, 2015, Seattle Xcoders 15

  16. Your watch extension is a separate process from your iPhone app; you just signed up for data syncing. Curt Clifton—The Omni Group. Jan 8, 2015, Seattle Xcoders 16

  17. Watch apps die easily; network operations are right out. 1 1 Monty Python and the Holy Grail Curt Clifton—The Omni Group. Jan 8, 2015, Seattle Xcoders 17

  18. What’s a developer to do? — File coordination? Nope. — App Group entitlement and user defaults — Shared CoreData database — Shared SQLite database — Seed file & callbacks Curt Clifton—The Omni Group. Jan 8, 2015, Seattle Xcoders 18

  19. Cartoon of the Day Curt Clifton—The Omni Group. Jan 8, 2015, Seattle Xcoders 19

  20. Cartoon of the Day 2 2 https://xkcd.com/356/ Curt Clifton—The Omni Group. Jan 8, 2015, Seattle Xcoders 20

  21. Syncing Using Seed File & Callbacks Curt Clifton—The Omni Group. Jan 8, 2015, Seattle Xcoders 21

  22. Syncing Data with  Watch — Your watch extension is a separate process from your iPhone app; you just signed up for data syncing. — Watch apps die easily; network operations are right out. 1 1 Monty Python and the Holy Grail Curt Clifton—The Omni Group. Jan 8, 2015, Seattle Xcoders 22

  23. Debugging  Watch Apps — Run iPhone app first — Open Watch “external display” — Launch the WatchKit app — In the simulator, tap the iPhone app — In Xcode, connect to the iPhone app — Use Console to watch Simulator’s system log Curt Clifton—The Omni Group. Jan 8, 2015, Seattle Xcoders 23

  24. Challenges Curt Clifton—The Omni Group. Jan 8, 2015, Seattle Xcoders 24

  25. Challenges — Sending UI commands to non-active controls — Using shared frameworks — Selecting watch menu items crashes the simulator eventually — No auto layout? — Notifications while watch app is running? Curt Clifton—The Omni Group. Jan 8, 2015, Seattle Xcoders 25

  26. Useful Resources Curt Clifton—The Omni Group. Jan 8, 2015, Seattle Xcoders 26

  27. From Apple — Marketing site — Dev and design resources Curt Clifton—The Omni Group. Jan 8, 2015, Seattle Xcoders 27

  28. From Others “A Day with  Watch” — Craig Hockenberry — “As I Learn WatchKit” David Smith To-scale  Watch Mockup PDF — Thibaut Sailly Curt Clifton—The Omni Group. Jan 8, 2015, Seattle Xcoders 28

  29. Bezel — Free from Troy Gaul — Combine with Xscope Mirror Curt Clifton—The Omni Group. Jan 8, 2015, Seattle Xcoders 29

  30. Wish List — Direct access to the Taptic Engine iPhone-free 3 rd party code — — API for digital crown — Animated state changes — Interactive Glances Curt Clifton—The Omni Group. Jan 8, 2015, Seattle Xcoders 30

  31. Thanks! — @curtclifton, curtclifton.net — @davidhoang, davidhoang.com Curt Clifton—The Omni Group. Jan 8, 2015, Seattle Xcoders 31

Recommend


More recommend