applewatch___ Study Notes (i) Development ideas and frameworks

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.