views:

10

answers:

0

Problem: after pushing the UINavigationController to the tabBarController nothing changes.

I have a tabbar based app, and it contains a button, that should open up a navigation based page to show images when touched by the user. The code snippet that I used and modified from stackoverflow does not seem to work. Could please someone take a quick look.

Thanks!

This is the action that should push the navigationcontroller to the tabbarcontroller.

  • (IBAction) imageClicked { fVC = [[FourthViewController alloc] initWithNibName:@"FourthViewController" bundle:nil]; UINavigationController *navigationController = [[UINavigationController alloc] initWithRootViewController:fVC]; [self.tabBarController.selectedViewController.navigationController pushViewController:navigationController animated:YES]; [fVC release]; }