I'm sure this is a simple thing but I am stumped.
This is my first attempt at implementing a navController and its not complicated.
I just want to use a UINavigationController to slide between views.
Starting with a main app view, press a button, slide to the next view.
Press a button on this view, slide to the next view.
I am not using the navigation bar or tool bar, but creating my own nav buttons
somewhere in the view.
I created the nav controller in the main.xib nib file and setup the appDelegate.
I also have the second controller and its view all set up and programmed so I know it all works.
When I start up the first nav controller view appears with its buttons.
When I click the button to push to the next view nothing happens.
Here is the "push" method linked to the button in the main nav controller view. This code is in the navController.m file.
When I click the button the code executes because I tested it with a log message. It just does not do anything.
What am I missing?
This is my first attempt at implementing a navController and its not complicated.
I just want to use a UINavigationController to slide between views.
Starting with a main app view, press a button, slide to the next view.
Press a button on this view, slide to the next view.
I am not using the navigation bar or tool bar, but creating my own nav buttons
somewhere in the view.
I created the nav controller in the main.xib nib file and setup the appDelegate.
I also have the second controller and its view all set up and programmed so I know it all works.
When I start up the first nav controller view appears with its buttons.
When I click the button to push to the next view nothing happens.
Here is the "push" method linked to the button in the main nav controller view. This code is in the navController.m file.
Code:
- (void)resumeGame: (id)sender{
newViewController *newView = [[newViewController alloc]
initWithNibName:@"newViewController" bundle:nil];
[self pushViewController:newView animated:YES];
[newView release];
}
When I click the button the code executes because I tested it with a log message. It just does not do anything.
What am I missing?
Last edited: