enumerateRanges(_:)
Executes a given block using each object in the index set, in the specified ranges.
Declaration
func enumerateRanges(_ block: (NSRange, UnsafeMutablePointer<ObjCBool>) -> Void)Parameters
- block:
The block to apply to elements in the index set.
The block takes two arguments:
Discussion
If the Block parameter is nil this method will raise an exception.
This method executes synchronously.