tester
tester

Reputation: 43

How to push uiviewcontroller over tabbarcontroller

I have a tabbar app. each tab has uinavigationcontroller. but all navigationcontroller's Shows Navigation Bar value is NO.

i control the which navgation control is active in

-(void)tabBarController:(UITabBarController *)tabBarController didSelectViewController:(UIViewController *)viewController

event in AppDelegate. Then i the user taps a row in a table in a tab i call the same method (openDetail)in appdelegate. i want to push DetailViewController full screen, not in tabs controller. i tried some ways but never worked. so i push it as a modalview.

[currentNavController presentModalViewController:detailVC animated:YES];

how can it come/go from right side. i just want it to work like normal rootviewcontroller. but new controller should come over tabbarcontroller like USA Today app.

Upvotes: 2

Views: 2879

Answers (1)

brutella
brutella

Reputation: 1617

present the view controller like this

[tabBarController presentModalViewController:detailVC animated:YES];

Upvotes: 3

Related Questions