class_createInstance
Creates an instance of a class, allocating memory for the class in the default malloc memory zone.
objc_constructInstance
Creates an instance of a class at the specified location.
Availability
Technology
void * objc_destructInstance(id obj);
This method does nothing if obj
is nil
.
Important 重要
The garbage collector does not call this function. As a result, if you edit this function, you should also edit finalize. That said, Core Foundation and other clients do call this function under garbage collection.
class_createInstance
objc_constructInstance