Instance Method

initWithString:

Returns an NSScanner object initialized to scan a given string.

Declaration

- (instancetype)initWithString:(NSString *)string;

Parameters

aString

The string to scan.

Return Value

An NSScanner object initialized to scan aString from the beginning. The returned object might be different than the original receiver.

See Also

Creating a Scanner

+ scannerWithString:

Returns an NSScanner object that scans a given string.

+ localizedScannerWithString:

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