"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.