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.
Instance Methods
eventEditViewController:didCompleteWithAction:
Invoked with the user is finished editing the event. (required)
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.heventEditViewControllerDefaultCalendarForNewEvents:
Returns the calendar to use as the default calendar for new events. (required)
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.hConstants
EKEventEditViewAction
Describes the action the user took to end editing.
typedef enum {
EKEventEditViewActionCanceled,
EKEventEditViewActionSaved,
EKEventEditViewActionDeleted
} EKEventEditViewAction;
Constants
EKEventEditViewActionCanceledThe user canceled the changes made to the event.
Available in iOS 4.0 and later.
Declared in
EKEventEditViewController.h.EKEventEditViewActionSavedThe user saved the changes made to the event.
Available in iOS 4.0 and later.
Declared in
EKEventEditViewController.h.EKEventEditViewActionDeletedThe user deleted the event.
Available in iOS 4.0 and later.
Declared in
EKEventEditViewController.h.
© 2010 Apple Inc. All Rights Reserved. (Last updated: 2010-04-30)