init(recurrenceWith:interval:end:)
Initializes and returns a simple recurrence rule with a given frequency, interval, and end.
Declaration
init(recurrenceWith type: EKRecurrenceFrequency, interval: Int, end: EKRecurrenceEnd?)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
2occurs every other week. Must be greater than0. - end:
The end of the recurrence rule.
Mentioned in
Return Value
The initialized recurrence rule, or nil if invalid values are provided.
See Also
Related Documentation
- Calendar and Reminders Programming Guide