views:

20

answers:

0

My application structure is the following:

UITabbarController
UINavigationController
UIViewController
UIViewController

The second View controller is pushed with

[self.navigationController pushViewController:[[DetailController alloc] initWithNibName:@"GenericView" bundle:nil] animated:YES];

When i from my DetailController try to push a modal view, i've tried:

    [self.tabBarController presentModalViewController:refineController animated:YES];

Which result in my new view covering everything.

[self.navigationController presentModalViewController:refineController animated:YES];

gives the same result

And my last try,

[self presentModalViewController:refineController animated:YES];

Also gives the same results, but i want to see both navigation bar and a tabbar.

And if i try with: UINavigationController *navigationController = [[UINavigationController alloc] initWithRootViewController:refineController]; [self presentModalViewController:navigationController animated:YES];

i get a navigation bar, but still no tabbar.. and the navigation bar is not of the same style as the one from the details view controller.

So my question, how do i get the tab bar to show, and the navigation bar to be of the same style as the one that is the child of the tabbar?

Thanks in advance.