Upload
oursky
View
32
Download
3
Embed Size (px)
Citation preview
watchOS 2
Apple Watch
• a watch
• app extension(s) on your watch
Apple Watch• the minimum of an app with apple watch
• app
• watch app
• watch app extension
• 3 separate app id
Apple Watch
• watch app
• layout
• watch app extension
• logic
watchOS 1 vs watchOS 2
watchOS 1 vs watchOS 2• iPhone <-> Apple Watch
• watchOS 1
• os handled
• + [openParentApplication:reply:]
• watchOS 2
• Watch Connectivity Framework
Watch Connectivity
• background transfer
• application context
• user info
• file
Watch Connectivity• message
• immediate
• requires reachable
• iPhone -> watch: BT connected + watch app foreground
• watch -> iPhone: BT connected
Watch Connectivitybackground transfer vs message
Watch Connectivity
• see : apple doc
• see : http://www.kristinathai.com/watchos-2-how-to-communicate-between-devices-using-watch-connectivity/
Complications
watchOS 2• time travel
• animation
• alpha
• width / height
• vertical / horizontal alignment
• background color
• layout group insets
• more access to the hardware
• new interface objects - WKInterfacePicker -> Digital Crown
• see: apple doc or http://www.raywenderlich.com/108415/watchkit-for-watchos-2