views:

29

answers:

0

Hello,

I have an app that uses a UINavigationController. On one of the pages, I add a UITabBarController in my viewDidLoad method. Once I'm done initializing and configuring the UITabBarController, what is the appropriate way to make the UITabBarController's contents visible?

If I use:

[self.view addSubview:self.tabBarController.view];

What happens is that the first tab of the TabBarController displays but not the Tab Bar itself.

If I use:

self.view = self.tabBarController.view;

Then the tab bar appears normally, and everything looks right except for tabs that contain UITableViews (which seem to think there is more height available than there actually is).

So what's the right way to do this?

Thank you, Loren