iOS Developer Library

Developer

EventKitUI Framework Reference EKEventEditViewDelegate Protocol Reference

Options
Deployment Target:

On This Page
Language:

EKEventEditViewDelegate

Inherits From


Not Applicable

Import Statement


Swift

import EventKitUI

Objective-C

@import EventKitUI;

Availability


Available in iOS 4.0 and later

Delegates of an EKEventEditViewController object conform to this protocol. Use an EKEventEditViewController object to allow the user to either create an event or edit an existing event. To be notified when the user finishes editing the event, set the delegate to an object conforming to this protocol.

  • Invoked with the user is finished editing the event. (required)

    Declaration

    Swift

    func eventEditViewController(_ controller: EKEventEditViewController!, didCompleteWithAction action: EKEventEditViewAction)

    Objective-C

    - (void)eventEditViewController:(EKEventEditViewController *)controller didCompleteWithAction:(EKEventEditViewAction)action

    Parameters

    controller

    The edit view controller presenting the event.

    action

    The action the user took to end editing.

    Discussion

    You must implement this method to dismiss the event edit view controller that was presented modally.

    Import Statement

    Objective-C

    @import EventKitUI;

    Swift

    import EventKitUI

    Availability

    Available in iOS 4.0 and later

  • Describes the action the user took to end editing.

    Declaration

    Swift

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

    Objective-C

    typedef enum { EKEventEditViewActionCanceled, EKEventEditViewActionSaved, EKEventEditViewActionDeleted } EKEventEditViewAction;

    Constants

    • EKEventEditViewActionCanceled

      EKEventEditViewActionCanceled

      The user canceled the changes made to the event.

      Available in iOS 4.0 and later

    • EKEventEditViewActionSaved

      EKEventEditViewActionSaved

      The user saved the changes made to the event.

      Available in iOS 4.0 and later

    • EKEventEditViewActionDeleted

      EKEventEditViewActionDeleted

      The user deleted the event.

      Available in iOS 4.0 and later

    Import Statement

    Objective-C

    @import EventKitUI;

    Swift

    import EventKitUI

    Availability

    Available in iOS 4.0 and later