First, development information
If you haven't developed an iphone and come straight to watch, I suggest you don't do it, not not, but now all third-party apps must be based on iphone extensions, native Watch apps, Apple is not yet open to developers, so in fact, What we can do on watch is very limited, and maybe Apple will open up more interfaces, but at the moment we have to abandon the idea of developing the iphone, and hope that everyone on the road to AppleWatch development: Forget experience, create classics.
1. Watch Application Architecture
It is not yet possible to develop completely out of the iphone's native Watch app, all third-party watch apps must be based on an iphone's host app. Developing an Apple Watch app must master the WatchKit framework, a new set of frameworks that Apple has developed specifically for Apple Watch. All classes in this framework begin with "WK", including the View controller class Wkinterfacecontroller, Wkusernotificationinterfacecontroller, Other UI element classes such as Wkinterfacegroup, Wkinterfacetable, Wkinterfacelabel, Wkinterfacebutton, and so on. To learn WatchKit systematically, you can read the Chun tips "walk into the WatchKit Framework".
2, three kinds of watch application method of Use
When we created the watch extension, we checked two scenes, literally we can understand the same, here plus my understanding, not the official explanation:
Watch App:watch app's main body, can be accessed through the icon on Watch, can interact with the iphone and data sharing.
Notification:watch notifications, which will be synchronized with iphone notifications, both local and remote, here and the iphone differ in the difference between long notice and short notice, in actual development we can differentiate by adding parameters in the background. The interface in storyboard is as follows:
Glance: Preview interface, no complex interactive ability, can not swipe, only in single display some data, click will enter the main watchapp:
applewatch___ Study Notes (i) Development ideas and frameworks