iOS Developer Library

Developer

EventKitUI Framework Reference EKCalendarChooserDelegate Protocol Reference

Options
Deployment Target:

On This Page
Language:

EKCalendarChooserDelegate

Inheritance


Not Applicable

Conforms To


Import Statement


Swift

import EventKitUI

Objective-C

@import EventKitUI;

Availability


Available in iOS 5.0 and later.

The EKCalendarChooserDelegate protocol defines methods that a calendar chooser’s delegate may optionally implement to be notified when a user finishes selecting calendars or cancels the process.

  • Sent when a user has changed the selection. (required)

    Declaration

    Swift

    optional func calendarChooserSelectionDidChange(_ calendarChooser: EKCalendarChooser!)

    Objective-C

    - (void)calendarChooserSelectionDidChange:(EKCalendarChooser *)calendarChooser

    Parameters

    calendarChooser

    The calendar chooser that sent this message.

    Discussion

    Use the selectedCalendars property to get the current selection.

    Import Statement

    Objective-C

    @import EventKitUI;

    Swift

    import EventKitUI

    Availability

    Available in iOS 5.0 and later.

  • Sent when a user has finished selecting one or more calendars. (required)

    Declaration

    Swift

    optional func calendarChooserDidFinish(_ calendarChooser: EKCalendarChooser!)

    Objective-C

    - (void)calendarChooserDidFinish:(EKCalendarChooser *)calendarChooser

    Parameters

    calendarChooser

    The calendar chooser that sent this message.

    Import Statement

    Objective-C

    @import EventKitUI;

    Swift

    import EventKitUI

    Availability

    Available in iOS 5.0 and later.

  • Sent when the user cancels the selection of calendars. (required)

    Declaration

    Swift

    optional func calendarChooserDidCancel(_ calendarChooser: EKCalendarChooser!)

    Objective-C

    - (void)calendarChooserDidCancel:(EKCalendarChooser *)calendarChooser

    Parameters

    calendarChooser

    The calendar chooser that sent this message.

    Import Statement

    Objective-C

    @import EventKitUI;

    Swift

    import EventKitUI

    Availability

    Available in iOS 5.0 and later.