If I have a UIViewController
subclass, how can I get the class name as string? I've tried doing [vc class]
, but this returns a Class
object, not an NSString
.
NSStringFromClass
Returns the name of a class as a string.
NSString * NSStringFromClass ( Class aClass );