AppleWatch Development Notification Notification Interface Development Guide __apple

Source: Internet
Author: User

1.iOS decided to display the notice on the iphone or Apple Watch;

2. The system provides a default interface to display information from notifications, and app can customize the notification interface;

3. Local or remote notification arrival, display Short-look interface


Short-look Interface:

1. When the user first view the notice, the system will display the Short-look interface;

2. Non-scrolling and cannot be customized;

3. Display the application icon, name, title;

4. Users continue to view the notice, the system from the Short-look interface quickly turned to the Long-look interface;


Short-look Interface Header (title)

1. The title provides a brief description of the notice;

2. Title of local Notice: Use Nslocalnotification Alerttitle property;

3. The title of remote notification: In payload, the key in alert dictionary is title;


Long-look interface

1. Can scroll the interface, showing the content of the notification and any related buttons;

2. The default interface includes app icon, notification title, information hint;

3. The notification interface is divided into three parts: Sash (top), content area (middle part), bottom areas (bottom)


(1) Sash: including the app icon and name, the default is transparent, but you can set the color in the custom notification interface;

(2) Content area: Displays the details of the notice. For a custom interface, you can determine the location of this part;

(3) Bottom area: Contains a dismiss button (provided by the system), and other buttons;


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.