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 |
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
-
eventproperty
Enabling Features
-
allowsCalendarPreviewproperty -
allowsEditingproperty
Acessing the Delegate
-
delegateproperty
Properties
allowsCalendarPreview
A Boolean value that determines whether the user can view the event in a calendar day preview.
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.hallowsEditing
A Boolean value that determines whether the user is allowed to edit the event.
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.
Declared In
EKEventViewController.hdelegate
The event view controller’s delegate.
Availability
- Available in iOS 4.2 and later.
Declared In
EKEventViewController.hevent
The event this view controller displays to the user.
Discussion
This property must be set before the view is displayed.
Availability
- Available in iOS 4.0 and later.
Declared In
EKEventViewController.h© 2010 Apple Inc. All Rights Reserved. (Last updated: 2010-09-22)