init(category:name:eventDuration:location:)
Creates a ticketed event object with the specified contents and attributes.
Declaration
init(category: INTicketedEventCategory, name: String, eventDuration: INDateComponentsRange, location: CLPlacemark?)Parameters
- category:
The type of ticketed event.
- name:
The name of the event.
- eventDuration:
The date and time range that indicates the beginning and end of the event.
- location:
The name and location of the venue or place for the event.
Return Value
A new INTicketedEvent object or nil if one can’t be created.