Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

The Zen Guide to WatchOS 2

2,289 views

Published on

Presented at iOSDevCampDC 2015 http://iosdevcampdc.com/

Code Sample Here: https://gist.github.com/NatashaTheRobot/6bcbe79afd7e9572edf6

Published in: Technology
  • Be the first to comment

The Zen Guide to WatchOS 2

  1. 1. The Zen Guide to WatchOS 2 @NatashaTheRobot
  2. 2. We join spokes together in a wheel, but it is the center hole that makes the wagon move.
  3. 3. We shape clay into a pot, but it is the emptiness inside that holds whatever we want.
  4. 4. We hammer wood for a house, but it is the inner space that makes it livable.
  5. 5. We work with being, but non-being is what we use.
  6. 6. Redesigning the Apple Watch UI by Luke Wroblewski
  7. 7. –Apple Watch Programming Guide “The personal nature of Apple Watch requires a different approach when it comes to designing WatchKit app, glance, and notification interfaces. Your interfaces need to display information quickly and facilitate fast navigation and interactions. Creating that kind of interface means you should not simply port your existing iOS app behavior over to Apple Watch. Instead, create a complementary experience to your iOS app.”
  8. 8. Watch Connectivity
  9. 9. Background Data Transfer
  10. 10. • application context
  11. 11. • application context • user info transfer
  12. 12. • application context • user info transfer • file transfer
  13. 13. Interactive Messaging
  14. 14. • Immediate Information Transfer • Requires reachable state
  15. 15. WCSession
  16. 16. if WCSession.isSupported() { let session = WCSession.defaultSession() session.delegate = self session.activateSession() }
  17. 17. import WatchConnectivity class WatchSessionManager: NSObject, WCSessionDelegate { static let sharedManager = WatchSessionManager() private override init() { super.init() } private let session: WCSession? = WCSession.isSupported() ? WCSession.defaultSession() : nil func startSession() { session?.delegate = self session?.activateSession() } }
  18. 18. Code Sample
  19. 19. Resources WWDC 2015 Videos to Watch ★ Introducing WatchKit Connectivity ★ Creating Complications with ClockKit ★ Networking with NSURLSession Blogs / Tutorials ★ KristinaThai.com ★ Ray Wenderlich ★ @NatashaTheRobot

×