Contents

UNCalendarNotificationTrigger

A trigger condition that causes a notification the system delivers at a specific date and time.

Declaration

class UNCalendarNotificationTrigger

Overview

Create a UNCalendarNotificationTrigger object when you want to schedule the delivery of a local notification at the date and time you specify. You use an NSDateComponents object to specify only the time values that you want the system to use to determine the matching date and time.

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.

Listing 1. Creating a trigger that repeats at a specific time

Topics

Creating a Calendar Trigger

Getting the Trigger Information

Initializers

See Also

Triggers