Dave
Dave

Reputation: 109

presentModalViewController and still view UITabbarcontroller

I have a UIViewController (aViewController) added to a UINavigationController which in turn is added to a UITabBarController.

I then use [self.navigationController presentModalViewController:animated] within aViewController to present a new view controller (bViewController).

However bViewController is always displayed full screen, thus hiding the UITabBarController.

What can I do to ensure the UITabBarController is always visible when bViewController is presented modally?

Upvotes: 0

Views: 1708

Answers (2)

Jordan
Jordan

Reputation: 21760

The whole idea of a modal view controller is to prevent any further interaction until the modal view is dismissed. It may be that you want interaction with the tab bar controller, which means you don't want to use the modal view. Or, to comply with best practice, use modal view as it was intended.

Upvotes: 1

Smixx
Smixx

Reputation: 345

You could probably set the frame of the modal view to only be as high as the view undernearth minus the height of the UITabBarController.

Upvotes: 0

Related Questions