Sascha
Sascha

Reputation: 57

Mixing UITableViewController and UITabBarController

I want to combine UITableViewController and UITabBarController:

1) UITableViewController with navigation is shown 2) UITabBarController is pushed ([self.navigationController pushViewController:nextController animated:YES];), the tabbar is shown, navigationItem is invisible, but the navigationBar stays.

Is this possible? Is there an example?

Upvotes: 0

Views: 911

Answers (1)

dreyln
dreyln

Reputation: 880

Correct me if I'm wrong, but it sounds like you have a UINavigationController with a UITableViewController pushed onto it and you would like to push a UITabBarController on to the navigation stack as well. If that is the case, then you may want to read Apple's View Controller Programming Guide for iOS where is states the following:

"Although a navigation controller can be embedded inside a tab, the reverse is not true. Presenting a tab bar interface from within a navigation interface is potentially confusing for users."

Having written that, there is a way to do it, but you must use a custom UIViewController instead of a UITabBarController. This is discussed in detail here

Upvotes: 2

Related Questions