Class

EKEventEditViewController

A view controller for creating, editing, and deleting calendar events.

Declaration

class EKEventEditViewController : UINavigationController

Overview

Presented modally, the event edit view controller provides a way for users to add new events, as well as edit or delete events from their calendar. New events are added to the user's default calendar unless they choose another calendar in the UI.

The controller includes delegates to receive a notification when the user saves an edit or deletes an event, or cancels from an edit session. The delegate must conform to EKEventEditViewDelegate.

Topics

Managing the Event Editing Interface

var editViewDelegate: EKEventEditViewDelegate?

The delegate to notify when editing an event.

protocol EKEventEditViewDelegate

A notification sent to the delegate when the user finishes editing an event.

Creating and Saving Events

var event: EKEvent?

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

var eventStore: EKEventStore!

The event store used to save the event.

Canceling Edits to Events

func cancelEditing()

Ends the editing session and discards any changes that were made to the event.