I know i have done this before, but I just cant remember how to do it.
I have a integer, that i want to be able to change in another class of mine.
how do i do it?
MainViewClass : UIViewController {
int score;
}
#import "MainViewClass.h"
OtherClass : MainViewClass{
}
Then in the .m of OtherClass i want to be able to use the variable score.
How do i do this?
I have searched around the internet, and have tried several things to try to get it to work will no success.
Thanks for looking! Have a wonderful day.
See Question&Answers more detail:os