Initializer

init(dayOfTheWeek:weekNumber:)

Initializes and returns a day of the week with a given day and week number.

Declaration

init(dayOfTheWeek: EKWeekday, weekNumber: Int)

Parameters

dayOfTheWeek

The day of the week. Values range from 1 to 7, with Sunday being 1.

weekNumber

The week number.

Return Value

The initialized day of the week.

See Also

Creating a Day of the Week

enum EKWeekday

The day of the week.

init(EKWeekday)

Creates and returns a day of the week with a given day.

init(EKWeekday, weekNumber: Int)

Creates and returns an autoreleased day of the week with a given day and week number.

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