美文网首页
iOS报错:Missing context for method

iOS报错:Missing context for method

作者: Sunday_David | 来源:发表于2020-07-19 18:20 被阅读0次
    #import <Foundation/Foundation.h>
    
    @interface TestClass : NSObject
    
    + (void)test:(NSString * const)string;
    
    @end
    
    @implementation TestClass
    
    + (void)test:(NSString * const)string{
        
    }
    
    @end
    
    int main(int argc, const char * argv[]) {
        @autoreleasepool {
            // insert code here...
            NSLog(@"Hello, World!");
            
            [TestClass test:@"998"];
        }
        return 0;
    }
    
    

    相关文章

      网友评论

          本文标题:iOS报错:Missing context for method

          本文链接:https://www.haomeiwen.com/subject/rmjrkktx.html