"Instance variable 'xxx' accessed in class method…why?
问题 So please forgive me as I am very new to stackoverflow and to ios programming in general. I am attempting to change the text of a button i have, replacing current text with a date string ( dateStringForInput ) I am passing in from another class. The button is called myTodayButton and is declared in my .h file for my class inputMilesViewController ... @property (strong, nonatomic) IBOutlet UIButton *myTodayButton ; Below is the code from my .m. +(void) changeButtonText:(NSString*)