Initializes an allocated
NSIndexSet object with an index range.
- iOS 2.0+
- macOS 10.3+
- UIKit for Mac 13.0+Beta
- tvOS 9.0+
- watchOS 2.0+
An index range. Must be in the range
0 .. NSNotFound - 1..
This method raises an
indexRange would add an index that exceeds the maximum allowed value for unsigned integers.
The resulting index set has a
firstIndex equal to the
indexRange, and a
count equal to the
indexRange. Specifying a zero-length range results in an empty index set.
This method is a designated initializer for
This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.Learn more about using Apple's beta software