A protocol that objects adopt to support fast enumeration.
SDKs
- iOS 2.0+
- macOS 10.5+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
Framework
- Foundation
Declaration
protocol NSFastEnumeration
Overview
The abstract class NSEnumerator
provides a convenience implementation that uses next
to return items one at a time.