EKEventViewController Class Reference

Inherits from
Conforms to
Framework
/System/Library/Frameworks/EventKitUI.framework
Availability
Available in iOS 4.0 and later.
Companion guide
Declared in
EKEventViewController.h
Related sample code

Overview

An EKEventViewController object displays the details of a calendar event. You can set whether users are allowed to edit the event. If the event is an invitation, where the organizer is not the user, you can set whether a calendar preview is shown.

You need to assign a delegate to an EKEventViewController object to receive a notification when the view controller should be closed. The delegate must conform to the EKEventViewDelegate protocol.

Tasks

Getting and Setting the Event

Enabling Features

Acessing the Delegate

Properties

allowsCalendarPreview

A Boolean value that determines whether the user can view the event in a calendar day preview.

@property(nonatomic) BOOL allowsCalendarPreview
Discussion

If the event is an invitation and this property is YES, then a table cell appears allowing the user to preview the event along with other events on the same day. If NO (the default), the calendar day preview does not appear. This property applies only to invitations.

Availability
  • Available in iOS 4.0 and later.
Declared In
EKEventViewController.h

allowsEditing

A Boolean value that determines whether the user is allowed to edit the event.

@property(nonatomic) BOOL allowsEditing
Discussion

If NO (the default), the event is not editable. If YES, the Edit button appears and the user is allowed to change properties of the event. This property applies only to events in an editable calendar that were created by the user. For example, it doesn’t apply to invitations sent by another user.

Availability
  • Available in iOS 4.0 and later.
Related Sample Code
Declared In
EKEventViewController.h

delegate

The event view controller’s delegate.

@property(nonatomic, assign) id<EKEventViewDelegate> delegate
Availability
  • Available in iOS 4.2 and later.
Declared In
EKEventViewController.h

event

The event this view controller displays to the user.

@property(nonatomic, retain) EKEvent *event
Discussion

This property must be set before the view is displayed.

Availability
  • Available in iOS 4.0 and later.
Related Sample Code
Declared In
EKEventViewController.h