Creates and returns a list of pointers to all registered class definitions.
SDKs
- iOS 3.1+
- macOS 10.7+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
Framework
- Objective-C Runtime
Declaration
func objc_copyClassList(_ outCount: Unsafe Mutable Pointer<UInt32>?) -> Autoreleasing Unsafe Mutable Pointer<Any Class>?
Parameters
outCount
An integer pointer used to store the number of classes returned by this function in the list. This parameter may be
nil
.
Return Value
A nil
terminated array of classes. You must free the array with free()
.