Hello all,
I've got an app here with two views and the code to transition from the first to the second. However, the code is placed inside a method (IBAction) for the click of a button and, upon running the app, the click does not trigger anything... Here is my button-click method:
"instructions" is an InstructionsScreenViewController declared in the header file.
What am I missing?
I've got an app here with two views and the code to transition from the first to the second. However, the code is placed inside a method (IBAction) for the click of a button and, upon running the app, the click does not trigger anything... Here is my button-click method:
Code:
- (IBAction) instructionsWasPressed {
if(self.instructions == nil) {
InstructionsScreenViewController *instructionsScreen = [[InstructionsScreenViewController alloc] initWithNibName:@"InstructionsScreen" bundle:nil];
self.instructions = instructionsScreen;
[instructions release];
}
[self.navigationController pushViewController:self.instructions animated:YES];
}
"instructions" is an InstructionsScreenViewController declared in the header file.
What am I missing?