watchOS by Tutorials by unknow
Author:unknow
Language: eng
Format: epub
Publisher: Ray Wenderlich
Creating a custom notification
Now that you’ve done all the prep work, you get to build the Pawsome custom long look static and dynamic notification, which will look like this when you’re done:
Static notification
Open Interface.storyboard from the PawsomeWatch group and drag a notification interface controller from the Object Library onto the storyboard.
Your storyboard will now look like this:
In your storyboard, notification categories are shown as arrows, or entry points, which point to a notification scene. Since apps can have multiple notification types, categories are used to differentiate one notification scene from another.
Select the notification category for the notification scene you just created — that’s the arrow itself. Next, in the Attributes Inspector, set the notification category name to Pawsome, which is the same string you used earlier in PawsomeNotificationPayload.apns.
Note: Notification categories are typically registered in the app delegate of the containing iOS app, but can also be registered in the Watch app. If you’re curious, open AppDelegate.swift or InterfaceController.swift to learn how and where Pawsome configures the notification category.
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Shoot Sexy by Ryan Armbrust(17557)
Portrait Mastery in Black & White: Learn the Signature Style of a Legendary Photographer by Tim Kelly(16872)
Adobe Camera Raw For Digital Photographers Only by Rob Sheppard(16797)
Photographically Speaking: A Deeper Look at Creating Stronger Images (Eva Spring's Library) by David duChemin(16498)
Bombshells: Glamour Girls of a Lifetime by Sullivan Steve(13685)
Art Nude Photography Explained: How to Photograph and Understand Great Art Nude Images by Simon Walden(12852)
Perfect Rhythm by Jae(5072)
Pillow Thoughts by Courtney Peppernell(4011)
The Book of Joy by Dalai Lama(3698)
Good by S. Walden(3347)
The Pixar Touch by David A. Price(3210)
A Dictionary of Sociology by Unknown(2854)
Fantastic Beasts: The Crimes of Grindelwald by J. K. Rowling(2843)
Humans of New York by Brandon Stanton(2687)
Stacked Decks by The Rotenberg Collection(2687)
Read This If You Want to Take Great Photographs by Carroll Henry(2602)
On Photography by Susan Sontag(2482)
Photographic Guide to the Birds of Indonesia by Strange Morten;(2407)
Insomniac City by Bill Hayes(2396)
