EKEventEditViewController Class Reference
| Inherits from | |
| Conforms to | |
| Framework | /System/Library/Frameworks/EventKitUI.framework |
| Availability | Available in iOS 4.0 and later. |
| Companion guide | |
| Declared in | EKEventEditViewController.h |
Overview
An EKEventEditViewController object allows the user to create and edit a calendar event. You can use this class to create a new event or a partially constructed event. If the new event has no calendar, the default calendar is used. You should present this type of view controller modally.
Tasks
Setting and Getting Properties
-
editViewDelegateproperty -
eventproperty -
eventStoreproperty
Canceling Edits to Events
Properties
editViewDelegate
The delegate that is notified when editing is done.
Availability
- Available in iOS 4.0 and later.
Declared In
EKEventEditViewController.hevent
The event the user creates or edits using this view controller.
Discussion
If nil, a new event is created and added to the specified event store. New events are added to the default calendar. An exception is raised if set to an event that is not in the specified event store.
Availability
- Available in iOS 4.0 and later.
See Also
Declared In
EKEventEditViewController.heventStore
The event store used to save the event.
Discussion
This property must be set before displaying the view.
Availability
- Available in iOS 4.0 and later.
See Also
Declared In
EKEventEditViewController.hInstance Methods
cancelEditing
Ends the editing session discarding any changes to the event.
Discussion
This method is the programmatic equivalent of the user tapping the Cancel button. The delegate will not receive the eventEditViewController:didCompleteWithAction: message, so you must dismiss the controller after calling this method.
Availability
- Available in iOS 6.0 and later.
Declared In
EKEventEditViewController.h© 2012 Apple Inc. All Rights Reserved. (Last updated: 2012-09-19)