I have the tab controller with 3 tabs that have navigation controllers inside of them:
// account view
UINavigationController * firstNavController = [[UINavigationController alloc]initWithRootViewController: viewController1];
viewController2.tabBarItem = [[UITabBarItem alloc]initWithTabBarSystemItem:UITabBarSystemItemFavorites tag:2];
// book view
UINavigationController * secondNavController = [[UINavigationController alloc]initWithRootViewController: viewController2];
viewController3.tabBarItem = [[UITabBarItem alloc]initWithTabBarSystemItem:UITabBarSystemItemFavorites tag:3];
// invite view
UINavigationController * thirdNavController = [[UINavigationController alloc]initWithRootViewController: viewController3];
CATransition *transition = [CATransition animation];
transition.duration = 0.7f;
transition.timingFunction = [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseInEaseOut];
transition.type = kCATransitionFade;
[firstNavController.view.layer addAnimation: transition forKey:nil];
[secondNavController.view.layer addAnimation: transition forKey:nil];
[thirdNavController.view.layer addAnimation: transition forKey:nil];
_tabBarController.viewControllers = [[NSArray alloc] initWithObjects: firstNavController, secondNavController, thirdNavController, nil];
I have a navigation bar with a right button that lets people go to the My account page. How can I do without using the navigation controller? For example, if people click tab bar button 1, they get a navigation controller (with the list of services they can choose from). If they click on the My Account button on the top right, it should open a new navigation controller with the tab bar on the bottom so that they cannot click back button on the My account page (because that is the root controller in this new navigation controller.
How can I do this?
Basically, I want to open a new view controller (controller 1 - my account) from another view controller (controller 2) without pushing that new view controller into the navigation controller of controller 2. controller 1 should have the tab bar at the bottom but no back button.