I add a category for NSObject
@interface NSObject (Test) - (nonnull NSString *)nameOfClass; @end @implementation NSObject (Test) -(NSString *)nameOfClass {