iOS Developer Library

Developer

EventKitUI Framework Reference EKCalendarChooser Class Reference

Options
Deployment Target:

On This Page
Language:

EKCalendarChooser

Inheritance


Conforms To


Import Statement


Swift

import EventKitUI

Objective-C

@import EventKitUI;

Availability


Available in iOS 5.0 and later.
Not available in app extensions.

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.

  • delegate delegate Property

    The calendar chooser’s delegate.

    Declaration

    Swift

    weak var delegate: EKCalendarChooserDelegate!

    Objective-C

    @property(nonatomic, weak) id< EKCalendarChooserDelegate > delegate

    Discussion

    This object should conform to the EKCalendarChooserDelegate protocol.

    Import Statement

    Objective-C

    @import EventKitUI;

    Swift

    import EventKitUI

    Availability

    Available in iOS 5.0 and later.

    Not available in app extensions.

  • The calendars selected by the user.

    Declaration

    Swift

    var selectedCalendars: Set<NSObject>!

    Objective-C

    @property(nonatomic, copy) NSSet *selectedCalendars

    Import Statement

    Objective-C

    @import EventKitUI;

    Swift

    import EventKitUI

    Availability

    Available in iOS 5.0 and later.

    Not available in app extensions.

  • Determines whether multiple selections are allowed. (read-only)

    Declaration

    Swift

    var selectionStyle: EKCalendarChooserSelectionStyle { get }

    Objective-C

    @property(nonatomic, readonly) EKCalendarChooserSelectionStyle selectionStyle

    Discussion

    Possible values are described in EKCalendarChooserSelectionStyle.

    Import Statement

    Objective-C

    @import EventKitUI;

    Swift

    import EventKitUI

    Availability

    Available in iOS 5.0 and later.

    Not available in app extensions.

  • 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.

    Import Statement

    Objective-C

    @import EventKitUI;

    Swift

    import EventKitUI

    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.

    Import Statement

    Objective-C

    @import EventKitUI;

    Swift

    import EventKitUI

    Availability

    Available in iOS 5.0 and later.

    Not available in app extensions.

    See Also

    showsDoneButton

  • The style of the chooser.

    Declaration

    Swift

    struct EKCalendarChooserDisplayStyle { init(_ value: UInt32) var value: UInt32 }

    Objective-C

    typedef enum { EKCalendarChooserDisplayAllCalendars, EKCalendarChooserDisplayWritableCalendarsOnly } EKCalendarChooserDisplayStyle;

    Constants

    • EKCalendarChooserDisplayAllCalendars

      EKCalendarChooserDisplayAllCalendars

      The chooser displays both readable and writable calendars.

      Available in iOS 5.0 and later.

    • EKCalendarChooserDisplayWritableCalendarsOnly

      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

    struct EKCalendarChooserSelectionStyle { init(_ value: UInt32) var value: UInt32 }

    Objective-C

    typedef enum { EKCalendarChooserSelectionStyleSingle, EKCalendarChooserSelectionStyleMultiple } EKCalendarChooserSelectionStyle;

    Constants

    • EKCalendarChooserSelectionStyleSingle

      EKCalendarChooserSelectionStyleSingle

      The style that allows single selection of calendars.

      Available in iOS 5.0 and later.

    • EKCalendarChooserSelectionStyleMultiple

      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.