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.