-2

I got class

@interface PlayScene : UIView

with some properties in it (here are some of them)

@property (readwrite, assign) int Figure1;
@property (readwrite, assign) int Figure2;
@property (readwrite, assign) int Figure3;

and I got a subView that is called in PlayScene

@interface gameOverMenu : PlayScene <UITextFieldDelegate>

and I need to get somehow those properties in my subclass. Actually I need to set them equal to 0 so that "Play Again" button works properly.

Alexander
  • 233
  • 1
  • 4
  • 14

1 Answers1

0

For those having same issue the original question was :

@interface gameOverMenu : UIView <UITextFieldDelegate>

He solved it by changing it to :

@interface GameOverMenu : PlayScene <UITextFieldDelegate>
ant
  • 22,634
  • 36
  • 132
  • 182
  • 1
    Note that the class should be named `GameOverMenu`. – bbum Apr 24 '12 at 17:13
  • well I got a new problem now, all properties were assigned as "read write", but when I try to change them like [self Figure1] =0; there is an error "assigning to 'readonly' return result of an objective-c message not allowed" – Alexander Apr 24 '12 at 17:18
  • @Alexander normally you'd open another question for that but here is how you can fix that issue @property `(strong, nonatomic)` – ant Apr 24 '12 at 20:01