A trigger condition that causes a notification to be delivered at a specific date and time.
- iOS 10.0+
- macOS 10.14+
- tvOS 10.0+
- watchOS 3.0+
UNCalendar object when you want to schedule the delivery of a local notification at the specified date and time. You specify the temporal information using an
NSDate object, which lets you specify only the time values that matter to you. The system uses the provided information to determine the next date and time that matches the specified information.
Listing 1 creates a trigger that delivers its notification every morning at 8:30. The repeating behavior is achieved by specifying
true for the
repeats parameter when creating the trigger.