I can not figure out what I am doing wrong nothing happens when the methods are called.
Declared in the interface of the class
ViewController* mainMenu;
- (id)initWithSize:(CGSize)size {
if (self = [super initWithSize:size]) {
mainMenu = [[ViewController alloc] init];
....
}
}
- (void)pauseEnabled {
// mainMenu.pauseButton.hidden = NO;
// mainMenu.pauseButton.enabled = YES;
[mainMenu.pauseButton setHidden:NO];
[mainMenu.pauseButton setEnabled:YES];
}
- (void)pauseDisabled {
mainMenu.pauseButton.hidden = YES;
mainMenu.pauseButton.enabled = NO;
}
- (void)startGame {
[self pauseEnabled];
......
}
ViewController". Why not something much more intuitive, like "MainMenuViewController" or "MainViewController"?