I have a view controller with a button and after clicking that button tabbarcontroller should appear.how to do it programatically.?
all the tutorials i found show tab bar immediately once the app is started.but i want it to be visible after the button is clicked and navigated to the other view.
i wrote code for navigating to a new page so that new page should consist of tab bar controller.
-(IBAction)buttonClicked
{
ViewController *viewController = [[ViewController alloc]initWithNibName:@"view" bundle:nil];
[self.navigationController pushViewController:viewController animated:YES];
[viewController release];
}
Try something like this: