Instance Method

initRecurrenceWithFrequency:interval:end:

Initializes and returns a simple recurrence rule with a given frequency, interval, and end.

Declaration

- (instancetype)initRecurrenceWithFrequency:(EKRecurrenceFrequency)type interval:(NSInteger)interval end:(EKRecurrenceEnd *)end;

Parameters

type

The frequency of the recurrence rule. Can be daily, weekly, monthly, or yearly.

interval

The interval between instances of this recurrence. For example, a weekly recurrence rule with an interval of 2 occurs every other week. Must be greater than 0.

end

The end of the recurrence rule.

Return Value

The initialized recurrence rule, or nil if invalid values are provided.

See Also

Creating a Basic Recurrence Rule

EKSpan

An object that indicates whether modifications should apply to a single event or all future events of a recurring event.