iphoneobjective-cclassinstanceclassname

Getting name of the class from an instance


I have the following problem: I get an instance of a class passed and want to know the name of the class of this instance. How to get this?


Solution

  • NSStringFromClass([instance class]) should do the trick.