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

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software