Pushing UIViewController onto a UINavigationController

Posted by Gregg on Stack Overflow See other posts from Stack Overflow or by Gregg
Published on 2011-01-03T20:13:33Z Indexed on 2011/01/04 17:53 UTC
Read the original article Hit count: 160

The other day I asked about using a UINavigationController as a child of a UIViewController. I got that working via the answer. Now what I'm trying to do is push a controller onto the nav stack. When a table cell is touched, I do the following:

- (void) showSetup {
    NSLog(@"Showing Setup");
    SetupViewController *controller = [[SetupViewController alloc]initWithNibName:@"SetupViewController" bundle:nil];
    self.setupViewController = controller;
    self.setupViewController.title = @"Setup";
    [self.navigationController pushViewController:self.setupViewController animated:YES];
    [controller release];
}

I can see the log statement in my console, but the view never changes. Am I missing something?

© Stack Overflow or respective owner

Related posts about iphone

Related posts about iphone-sdk-4.0