Bart Jacobs
Bart Jacobs

Reputation: 9082

Mimic iPod application UI

I am looking for the best approach to mimic the iPod application on the iPhone/iPod Touch. Specifically, I want to mimic what happens when the iPod player (when a track is actually played) shows up. The iPod application starts as a tabBarController with every tab holding a navigationController. However, when a track is played, the entire tabBarController is replaced by a new viewController.

What is the best approach for this kind of UI? At first, I thought the tabBarController needed to be added to a separate navigationController, but this resulted in two navigation bars (one on top of the other).

Any advice is welcome. Cheers.

Upvotes: 0

Views: 182

Answers (2)

Noah Witherspoon
Noah Witherspoon

Reputation: 57149

Use the hidesBottomBarWhenPushed property. Your controller will stay within your existing navigation-controller hierarchy (unlike fluchtpunkt's solution), and the tab bar will automatically hide and show itself when your player controller appears and disappears.

Upvotes: 2

Matthias Bauch
Matthias Bauch

Reputation: 90127

you want to present the new viewcontroller as a modal vc.

- (void)presentModalViewController:(UIViewController *)modalViewController animated:(BOOL)animated

Upvotes: 0

Related Questions