Enumerates over the ranges in the range of objects using the block
- iOS 5.0+
- macOS 10.7+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
The range of items to enumerate. If the range intersects a range of the receiver's indexes, then that intersection will be passed to the block.
A bitmask that specifies the
NSEnumerationfor the enumeration.
The block to apply to elements in the index set.
The block takes two arguments:
The range of elements.
A reference to a Boolean value. The block can set the value to
trueto stop further processing of the array. The stop argument is an out-only argument. You should only ever set this Boolean to
truewithin the Block.
By default, the enumeration starts with the first object and continues serially through the indexed set range to the last object in the range. You can specify
NSEnumeration as enumeration options to modify this behavior.
This method executes synchronously.