Instance Method

initWithCategory:name:eventDuration:location:

Creates a ticketed event object with the specified contents and attributes.

Declaration

- (instancetype)initWithCategory:(INTicketedEventCategory)category name:(NSString *)name eventDuration:(INDateComponentsRange *)eventDuration location:(CLPlacemark *)location;

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.