Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

ethayne

macrumors newbie
Original poster
Dec 31, 2008
3
0
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:

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?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.