TLYShyNavBar icon indicating copy to clipboard operation
TLYShyNavBar copied to clipboard

Show the navigation bar programmatically

Open valzevul opened this issue 9 years ago • 3 comments

Hello, Thank you very much for your control. I was wondering, is it possible to show the navigation bar programmatically (when a user presses a button, not during the scroll)?

Sorry if I've missed the info in the documentation.

valzevul avatar Dec 14 '15 11:12 valzevul

Hi, thanks for using it! The only way right now is to probably set disable to YES, then back to NO, but that's not ideal. I thought there was an issue already open for that.. Since there isn't, I'll leave this and hopefully get to it soon, it's definitely something good to have.

Mazyod avatar Dec 14 '15 14:12 Mazyod

It would also be great make this animatable. Also thank you for this framework! It's awesome!

BenchR267 avatar Dec 21 '15 13:12 BenchR267

Setting disable to true then false didn't do it.

What I did is expose a new method in TLYShyNavBarManager. Here is how I did it :

In TLYShyNavBarManager.h, add the following line :

- (void)expand;

In TLYShyNavBarManager.m, add the following lines below the - (void)cleanup method :

- (void)expand
{
    [self cleanup];
}

And then to show the shyNavBar, simply call self.shyNavBar.expand().

tiois avatar Jul 08 '16 12:07 tiois