Tech . May 16, 2010
    . por Development Team

    Hiding the iPhone Tab Bar with TTNavigator

    If you are using the iPhone Tab Bar in your application, but you need to hide the Tab Bar in any specific situation. And you’re using TTNavigator (Three20h) to manage yours View Controllers. This is a very easy task.

    Let’s assume that you want to hide the Tab Bar when push the view to the controller. Follow this steps:

    • First, add the TTNavigatorDelegate to your class.
    • Second, add your class as delegate of TTNavigator. One good place to put this code is your init method:
     //// //// //// //// //// //// //// //// //// //// ////
     // Delegation from TTNavigator.
     [[TTNavigator navigator] setDelegate:self];
    
    -(void)navigator:(TTBaseNavigator *)navigator
         willOpenURL:(NSURL *)URL
    inViewController:(UIViewController *)controller
    {
              controller.hidesBottomBarWhenPushed = YES;
    }
    

    You’re done. This code wil hide the Tab Bar when the view has been pushed and
    automatically will show the Tab Bar back when the view has been popped.

    Comparta este artículo
    • Facebook
    • Mixx
    • Google Bookmarks
    • LinkedIn
    • Print
    • email
    • Twitter

Comente este articulo

Enviar
Hidden.

Comentarios

    jason . December 31, 2010

    where is the like button?