The date and time at which to deliver a local notification.
- iOS 10.0+
- tvOS 10.0+
- watchOS 3.0+
You use a
UNCalendar object to specify the temporal information for the trigger condition of a notification. Calendar triggers can fire once or they can fire multiple times.
Always use the
init(date method to create instances of this class. Because you specify temporal information using an
NSDate object, you can create triggers that include only the components that matter to you. This behavior makes it easier to create repeating triggers. Listing 1 shows an example that builds a trigger to fire every morning at 8:30 by specifying only the hour and minute date components and setting the trigger to repeat.