Type Method

addressCheckingResultWithRange:components:

Creates and returns a text checking result with the specified address components.

Declaration

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

Parameters

range

The range of the detected result.

components

A dictionary containing the address components. The dictionary keys are described in Keys for Address Components.

Return Value

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

See Also

Text Checking Results for Addresses

addressComponents

The address dictionary of a type checking result.