Type Method

scannerWithString:

Returns an NSScanner object that scans a given string.

Declaration

+ (instancetype)scannerWithString:(NSString *)string;

Parameters

aString

The string to scan.

Return Value

An NSScanner object that scans aString.

Discussion

Sets the string to scan by invoking initWithString: with aString.

See Also

Creating a Scanner

+ localizedScannerWithString:

Returns an NSScanner object that scans a given string according to the user’s default locale.

- initWithString:

Returns an NSScanner object initialized to scan a given string.