So I have this:

@interface ViewController : UIViewController{
    IBOutlet UILabel *Screen;
}

+(void)num:(int)number;

And I want to access Screen in another class in the num method like so:

+(void)num:(int)number{
    Screen.text = @"test";
}

But xCode says "Instance variable 'Screen' accesses in class method"

Is there any way to do this?

Related posts

Recent Viewed