objc_constructInstance
Creates an instance of a class at the specified location.
objc_destructInstance
Destroys an instance of a class without freeing memory and removes any of its associated references.
Availability
Technology
id class_createInstance(Class cls, size_t
extraBytes);
cls
The class that you want to allocate an instance of.
extraBytes
An integer indicating the number of extra bytes to allocate. The additional bytes can be used to store additional instance variables beyond those defined in the class definition.
An instance of the class cls
.
objc_constructInstance
objc_destructInstance