Function

objc_disposeClassPair(_:)

Destroys a class and its associated metaclass.

Declaration

func objc_disposeClassPair(_ cls: AnyClass)

Parameters

cls

The class to be destroyed. This class must have been allocated using objc_allocateClassPair(_:_:_:).

Discussion

Do not call this function if instances of the cls class or any subclass exist.

See Also

Adding Classes

func objc_registerClassPair(AnyClass)

Registers a class that was allocated using objc_allocateClassPair(_:_:_:).

func objc_duplicateClass(AnyClass, UnsafePointer<Int8>, Int)

Used by Foundation's Key-Value Observing.