Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TabBarController + NavigationController :Push and Pop issue

I m using a initial Root-View controller containing Navigation Controller :

enter image description here

Now i want to navigate from uiviewcontroller 1.2.1 to uiviewcontroller 1.1

All conventional solutions like self.pushview and self.popView functions are not working; They are creating another instance of that UITabBarController Containing pages ... Plz guys join hands.. Any help will be appreciated .........

like image 811
itechnician Avatar asked Feb 19 '23 09:02

itechnician


1 Answers

You have to put little consternation on the Navigation Controller hierarchy

for navigate self navigation controller to parent navigation controller use

self.tabBarController.navigationController

USer this code

PUSH : [self.tabBarController.navigationController pushViewController:objNav animated:YES];

POP  : [self.tabBarController.navigationController popViewControllerAnimated:YES];

Thanks,

like image 82
Raj Avatar answered Mar 07 '23 21:03

Raj