Enumerates all the lines in the string.
- iOS 4.0+
- macOS 10.6+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
The block executed for the enumeration.
The block takes two arguments:
The current line of the string being enumerated. The line contains just the contents of the line, without the line terminators. See
getfor a discussion of line terminators.
Line Start: end: contents End: for Range:
A reference to a Boolean value that the block can use to stop the enumeration by setting
*stop = YES; it should not touch