Type Method

transitInformationCheckingResultWithRange:components:

Creates and returns a text checking result with the specified transit information.

Declaration

+ (NSTextCheckingResult *)transitInformationCheckingResultWithRange:(NSRange)range components:(NSDictionary<NSTextCheckingKey,NSString *> *)components;

Parameters

range

The range of the detected result.

components

A dictionary containing the transit components. The currently supported keys are NSTextCheckingAirlineKey and NSTextCheckingFlightKey.

Return Value

Returns an NSTextCheckingResult with the specified range and a resultType of NSTextCheckingTypeTransitInformation.