Function

objc_copyClassList(_:)

Creates and returns a list of pointers to all registered class definitions.

Declaration

func objc_copyClassList(_ outCount: UnsafeMutablePointer<UInt32>?) -> AutoreleasingUnsafeMutablePointer<AnyClass>?

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().

See Also

Obtaining Class Definitions

func objc_lookUpClass(UnsafePointer<Int8>)

Returns the class definition of a specified class.

func objc_getClass(UnsafePointer<Int8>)

Returns the class definition of a specified class.

func objc_getRequiredClass(UnsafePointer<Int8>)

Returns the class definition of a specified class.

func objc_getMetaClass(UnsafePointer<Int8>)

Returns the metaclass definition of a specified class.