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
Related sample code

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

Canceling Edits to Events

Properties

editViewDelegate

The delegate that is notified when editing is done.

@property(nonatomic, assign) id<EKEventEditViewDelegate> editViewDelegate
Availability
  • Available in iOS 4.0 and later.
Related Sample Code
Declared In
EKEventEditViewController.h

event

The event the user creates or edits using this view controller.

@property(nonatomic, retain) EKEvent *event
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.
Declared In
EKEventEditViewController.h

eventStore

The event store used to save the event.

@property(nonatomic, retain) EKEventStore *eventStore
Discussion

This property must be set before displaying the view.

Availability
  • Available in iOS 4.0 and later.
See Also
Related Sample Code
Declared In
EKEventEditViewController.h

Instance Methods

cancelEditing

Ends the editing session discarding any changes to the event.

- (void)cancelEditing
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