I was wondering if there was a way to pass variables from one view to another. view1.m looks like this:
I want the second view to read the variable lives like this:
but its no good. I'm not even sure this is possible, but if anybody knows or has any suggestions, please share.
Code:
int lives=3;
Code:
int lives=view1.lives;