I am trying to get a string name of a class from the class object itself.
// For instance
[NSArray className]; // @"NSArray"
I have found object_getClassName(id obj)
but that requires an instance be passed to it, and in my case that is needless work.
So how can I get a string from a class object, and not an instance?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…