Instance Method

compareStartDate(with:)

Compares the start date of the receiving event with the start date of another event.

Declaration

func compareStartDate(with other: EKEvent) -> ComparisonResult

Parameters

other

The event to compare against.

Return Value

Discussion

You can pass the selector for this method to the NSArray method sortedArray(using:) to create an array of events sorted by start date.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software