watchOS Development--Configure the static notification interface and the dynamic notification interface __apple

Source: Internet
Author: User

"One" Configuration static notification interface

1. Objective: To provide a fallback interface when the dynamic interface can not be configured in time by WatchKit expansion;

2. Principle of Creation:

(1) All images must exist in the WatchKit app bundle;

(2) The interface can not include controls, tables, maps or other interactive elements;

(3) The Notificationalertlabel outlet of the interface must be connected with a label. The contents of the label are alert message for the notification, and no other label text needs to be changed;



"Two" Configuration Dynamic notification interface

1. can display more content;

2. Create the Wkusernotificationinterfacecontroller subclass, whose implementation determines the information displayed on the notification interface;

3. Design principles:

(1) Most interfaces can be labeled, picture, group and separator;

(2) Include tables and maps only when needed;

(3) Do not include buttons, switches or other interoperable controls;


GitHub home: https://github.com/chenyufeng1991. You are welcome to visit.

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.