Why NSObject's instance method could be called as a class method

后端 未结 0 1489
青春惊慌失措
青春惊慌失措 2020-12-02 14:20

I add a category for NSObject

@interface NSObject (Test)
- (nonnull NSString *)nameOfClass;
@end
@implementation NSObject (Test)
-(NSString *)nameOfClass {
           


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题