Executes a given block using each object in the index set, in the specified ranges.
- iOS 5.0+
- macOS 10.7+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
A bitmask that specifies the
NSEnumerationfor the enumeration (whether it should be performed concurrently and whether it should be performed in reverse order).
The block to apply to elements in the index set.
The block takes two arguments:
The range of objects of the elements in the index set.
A reference to a Boolean value. The block can set the value to
YESto stop further processing of the array. The stop argument is an out-only argument. You should only ever set this Boolean to
YESwithin 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.