Conforms to | |
Framework | /System/Library/Frameworks/EventKitUI.framework |
Availability | Available in iOS 4.0 and later. |
Companion guide | |
Declared in | EKEventEditViewController.h |
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.
– eventEditViewController:didCompleteWithAction:
required method
– eventEditViewControllerDefaultCalendarForNewEvents:
required method
Invoked with the user is finished editing the event. (required)
- (void)eventEditViewController:(EKEventEditViewController *)controller didCompleteWithAction:(EKEventEditViewAction)action
The edit view controller presenting the event.
The action the user took to end editing.
You must implement this method to dismiss the event edit view controller that was presented modally.
EKEventEditViewController.h
Returns the calendar to use as the default calendar for new events. (required)
- (EKCalendar *)eventEditViewControllerDefaultCalendarForNewEvents:(EKEventEditViewController *)controller
The event edit view controller requesting the default calendar.
If the delegate does not implement this method, the defaultCalendarForNewEvents
property of the event store is used.
EKEventEditViewController.h
Describes the action the user took to end editing.
typedef enum { EKEventEditViewActionCanceled, EKEventEditViewActionSaved, EKEventEditViewActionDeleted } EKEventEditViewAction;
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