Giter Club home page Giter Club logo

Comments (8)

jinthagerman avatar jinthagerman commented on August 17, 2024

I will look into implementing this natively in JBTabBarController, but it looks like it will take a fair amount of effort if it is in fact possible.

You will need to do this manually for now. You should be able to achieve this fairly easily animating the frame of the JBTabBar and the frame of the navController in viewDidAppear or viewWillAppear and viewDidDisappear or viewWillDisappear.

from jbtabbarcontroller.

jinthagerman avatar jinthagerman commented on August 17, 2024

or implement the UINavigationControllerDelegate Protocol and animate the views in navigationController:willShowViewController:animated: or navigationController:didShowViewController:animated:

from jbtabbarcontroller.

fprosper avatar fprosper commented on August 17, 2024

Not sure we are on the same page on this: the 'hidesBottomBarWhenPushed' method is meant to hide the bottom bar (in this case the UITabBar when the view controller is pushed on the navigation stack, no animation involved.

Thanks,
F.

Fabrizio Prosperi
Sent with Sparrow (http://www.sparrowmailapp.com/?sig)

On Sunday, April 29, 2012 at 23:22 , Jin Budelmann wrote:

or implement the UINavigationControllerDelegate Protocol and animate the views in navigationController:willShowViewController:animated: or navigationController:didShowViewController:animated:


Reply to this email directly or view it on GitHub:
#4 (comment)

from jbtabbarcontroller.

jinthagerman avatar jinthagerman commented on August 17, 2024

I haven't used hidesBottomBarWhenPushed before, but my understanding of it matches what you have said.

When you push a view controller with hidesBottomBarWhenPushed set onto the nav stack, does it not animate the hiding of the "bottom bar"/UITabBar? That is what I meant by animation in the comment above. If you simply want to hide it without any animation, just set tabBar.hidden to YES and resize the selectedViewController's view.

Might be worth checking out this guy's fork of BCTabBarController and applying the same thing to JBTabBarController.
xuzhe/BCTabBarController@467ae07

from jbtabbarcontroller.

fprosper avatar fprosper commented on August 17, 2024

Thanks, halfway there. Managed to hide tabBar in viewDidLoad but can't seem to resize self.view with:

  • (void)viewDidLoad
    {
    [super viewDidLoad];
    self.navigationController.JBTabBarController.tabBar.hidden = YES;
    self.view.frame = CGRectMake(0, 0, 320, 460);
    }

Maybe viewDidLoad is too late, but in initWithFrame the tabBar is not accessible yet.

F.

Fabrizio Prosperi
Sent with Sparrow (http://www.sparrowmailapp.com/?sig)

On Monday, April 30, 2012 at 1:24 , Jin Budelmann wrote:

I haven't used hidesBottomBarWhenPushed before, but my understanding of it matches what you have said.

When you push a view controller with hidesBottomBarWhenPushed set onto the nav stack, does it not animate the hiding of the "bottom bar"/UITabBar? That is what I meant by animation in the comment above. If you simply want to hide it without any animation, just set the tabBar.hidden to YES and resize the selectedViewController.

Might be worth checking out this guy's fork of BCTabBarController and applying the same thing to JBTabBarController.
xuzhe/BCTabBarController@467ae07


Reply to this email directly or view it on GitHub:
#4 (comment)

from jbtabbarcontroller.

jinthagerman avatar jinthagerman commented on August 17, 2024

I wouldn't recommend doing it in viewDidLoad, but if you replace the third line with self.navigationController.view.frame = CGRectMake(0, 0, 320, 460); it should work.

from jbtabbarcontroller.

fprosper avatar fprosper commented on August 17, 2024

Thank you very much Jin, it worked.

F.

Fabrizio Prosperi
Sent with Sparrow (http://www.sparrowmailapp.com/?sig)

On Monday, April 30, 2012 at 2:42 , Jin Budelmann wrote:

I wouldn't recommend doing it in viewDidLoad, but if you replace the third line with self.navigationController.view.frame = CGRectMake(0, 0, 320, 460); it should work.


Reply to this email directly or view it on GitHub:
#4 (comment)

from jbtabbarcontroller.

jinthagerman avatar jinthagerman commented on August 17, 2024

No problem

from jbtabbarcontroller.

Related Issues (6)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.