Class

EKRecurrenceEnd

A class that defines the end of a recurrence rule.

Declaration

class EKRecurrenceEnd : NSObject

Overview

The EKRecurrenceEnd class defines the end of a recurrence rule defined by an EKRecurrenceRule object. The recurrence end can be specified by a date (date-based) or by a maximum count of occurrences (count-based). An event that is intended to continue indefinitely should have its EKRecurrenceEnd set to nil.

Topics

Creating a Recurrence End

init(end: Date)

Initializes and returns a date-based recurrence end with a given end date.

init(occurrenceCount: Int)

Initializes and returns a count-based recurrence end with a given maximum occurrence count.

Accessing Recurrence End Properties

var endDate: Date?

The end date of the recurrence end, or nil if the recurrence end is count-based.

var occurrenceCount: Int

The occurrence count of the recurrence end, or 0 if the recurrence end is date-based.

Relationships

Inherits From

See Also

Recurrence

Creating a Recurring Event

Set up an event or reminder that repeats.

class EKRecurrenceDayOfWeek

A class that represents the day of the week.

class EKRecurrenceRule

A class that describes the recurrence pattern for a recurring event.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software