EKEventViewDelegate Protocol Reference

Conforms to
Framework
/System/Library/Frameworks/EventKitUI.framework
Availability
Available in iOS 4.2 and later.
Companion guide
Declared in
EKEventViewController.h

Overview

Delegates of an EKEventViewController object conform to this protocol. An event view controller’s delegate is notified when the event view controller should be closed. It is your responsibility to close the event view controller and perform any additional desired tasks within this protocol’s method.

Tasks

Delegate Methods

Instance Methods

eventViewController:didCompleteWithAction:

Invoked when the event view controller should be closed. (required)

- (void)eventViewController:(EKEventViewController *)controller didCompleteWithAction:(EKEventViewAction)action
Parameters
controller

The event view controller that should be closed.

action

The action that was taken to prompt closing the event view controller. See “EKEventViewAction” for possible values.

Availability
  • Available in iOS 4.2 and later.
Declared In
EKEventViewController.h

Constants

EKEventViewAction

Describes the action that was taken to indicate that the event view controller should be closed.

typedef enum {
   EKEventViewActionDone,
   EKEventViewActionResponded,
   EKEventViewActionDeleted
} EKEventViewAction;
Constants
EKEventViewActionDone

The user tapped the Done button.

Available in iOS 4.2 and later.

Declared in EKEventViewController.h.

EKEventViewActionResponded

The user responded to a pending event invitation and saved it.

Available in iOS 4.2 and later.

Declared in EKEventViewController.h.

EKEventViewActionDeleted

The event was deleted.

Available in iOS 4.2 and later.

Declared in EKEventViewController.h.