iOS Reference Library Apple Developer
Search

EKEventEditViewDelegate Protocol Reference

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

Overview

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.

Tasks

Finishing an Edit

Getting the Default Calendar

Instance Methods

eventEditViewController:didCompleteWithAction:

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

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

Availability
  • Available in iOS 4.0 and later.
Declared In
EKEventEditViewController.h

eventEditViewControllerDefaultCalendarForNewEvents:

Returns the calendar to use as the default calendar for new events. (required)

- (EKCalendar *)eventEditViewControllerDefaultCalendarForNewEvents:(EKEventEditViewController *)controller

Parameters
controller

The event edit view controller requesting the default calendar.

Discussion

If the delegate does not implement this method, the defaultCalendarForNewEvents property of the event store is used.

Availability
  • Available in iOS 4.0 and later.
Declared In
EKEventEditViewController.h

Constants

EKEventEditViewAction

Describes the action the user took to end editing.

typedef enum {
   EKEventEditViewActionCanceled,
   EKEventEditViewActionSaved,
   EKEventEditViewActionDeleted
} EKEventEditViewAction;
Constants
EKEventEditViewActionCanceled

The user canceled the changes made to the event.

Available in iOS 4.0 and later.

Declared in EKEventEditViewController.h.

EKEventEditViewActionSaved

The user saved the changes made to the event.

Available in iOS 4.0 and later.

Declared in EKEventEditViewController.h.

EKEventEditViewActionDeleted

The user deleted the event.

Available in iOS 4.0 and later.

Declared in EKEventEditViewController.h.




Last updated: 2010-04-30

Did this document help you? Yes It's good, but... Not helpful...