iOS Developer Library — Prerelease

Developer

EventKit UI Framework Reference EKCalendarChooser Class Reference

Options
Deployment Target:

On This Page
Language:

EKCalendarChooser

An instance of the EKCalendarChooser class is a view controller that displays an interface for selecting one or more calendars in an event store. This view controller can be pushed on a navigation stack or presented modally. Use a delegate that conforms to the EKCalendarChooserDelegate protocol to receive callbacks when the user selects calendars or cancels the operation.

  • A Boolean value that determines whether the Cancel button is shown when this controller is presented modally by a navigation controller.

    Declaration

    Swift

    var showsCancelButton: Bool

    Objective-C

    @property(nonatomic) BOOL showsCancelButton

    Discussion

    YEStrue to show the Cancel button; otherwise, NOfalse.

    Availability

    Available in iOS 5.0 and later.

    Not available in app extensions.

    See Also

    showsDoneButton

  • A Boolean value that determines whether the Done button is shown when this controller is presented modally by a navigation controller.

    Declaration

    Swift

    var showsDoneButton: Bool

    Objective-C

    @property(nonatomic) BOOL showsDoneButton

    Discussion

    YEStrue to show the Done button; otherwise, NOfalse.

    Availability

    Available in iOS 5.0 and later.

    Not available in app extensions.

    See Also

    showsDoneButton

  • The style of the chooser.

    Declaration

    Swift

    enum EKCalendarChooserDisplayStyle : Int { case AllCalendars case WritableCalendarsOnly }

    Objective-C

    typedef enum { EKCalendarChooserDisplayAllCalendars, EKCalendarChooserDisplayWritableCalendarsOnly } EKCalendarChooserDisplayStyle;

    Constants

    • AllCalendars

      EKCalendarChooserDisplayAllCalendars

      The chooser displays both readable and writable calendars.

      Available in iOS 5.0 and later.

    • WritableCalendarsOnly

      EKCalendarChooserDisplayWritableCalendarsOnly

      The chooser displays writable calendars only.

      Available in iOS 5.0 and later.

    Import Statement

    Objective-C

    @import EventKitUI;

    Swift

    import EventKitUI

    Availability

    Available in iOS 5.0 and later.

  • The style of selecting calendars.

    Declaration

    Swift

    enum EKCalendarChooserSelectionStyle : Int { case Single case Multiple }

    Objective-C

    typedef enum { EKCalendarChooserSelectionStyleSingle, EKCalendarChooserSelectionStyleMultiple } EKCalendarChooserSelectionStyle;

    Constants

    • Single

      EKCalendarChooserSelectionStyleSingle

      The style that allows single selection of calendars.

      Available in iOS 5.0 and later.

    • Multiple

      EKCalendarChooserSelectionStyleMultiple

      The style that allows multiple selections of calendars.

      Available in iOS 5.0 and later.

    Import Statement

    Objective-C

    @import EventKitUI;

    Swift

    import EventKitUI

    Availability

    Available in iOS 5.0 and later.