AMScrollingNavbar icon indicating copy to clipboard operation
AMScrollingNavbar copied to clipboard

when the bar is hidden and I deploy a side menu and screen change got this error

Open natijauskas opened this issue 12 years ago • 10 comments

captura de pantalla 2014-03-18 a la s 00 22 48 when the bar is hidden and I deploy a side menu and screen change got this error,the bar is hidden on all screens and I get a blank space. How can I fix this so that when you leave the normal screen display bar? THANKS A LOT

natijauskas avatar Mar 17 '14 23:03 natijauskas

My guess is that your sidemenu updates the bar button that opens it. A quick fix would be to call [self refreshNavbar] after the sidebar is closed. This should reset the alpha on the menu item to 0.

andreamazz avatar Mar 18 '14 09:03 andreamazz

not working this andreamazz :(

natijauskas avatar Mar 18 '14 22:03 natijauskas

Any help Please???:(

natijauskas avatar Mar 19 '14 23:03 natijauskas

Did you try to show the navbar when the sidemenu is being opened? What side menu library are you using?

andreamazz avatar Mar 20 '14 07:03 andreamazz

Im using REFrostedViewController, as I do that "Did you try to show the navbar When the SIDEMENU is being opened?"

natijauskas avatar Mar 20 '14 14:03 natijauskas

Hi @natijauskas, you can call [self showNavbar]; when the side menu is presented.

andreamazz avatar Mar 20 '14 14:03 andreamazz

when the side menu is presented,How Can I do that? In what method?ViewDidLoad?I have to import something to call self showNavbar in frostedviewcontroller? Sorry, but Im new with this. Thanks a lot!

natijauskas avatar Mar 20 '14 22:03 natijauskas

Set your view controller as the delegate for REFrostedViewController (implement REFrostedViewControllerDelegate), then implement the method:

- (void)frostedViewController:(REFrostedViewController *)frostedViewController willShowMenuViewController:(UIViewController *)menuViewController
{
    [self showNavbar];
}

andreamazz avatar Mar 21 '14 08:03 andreamazz

Ok I add in my view controller and then, I add this method in the viewcontroller

- (void)frostedViewController:(REFrostedViewController *)frostedViewController willShowMenuViewController:(UIViewController *)menuViewController
{
    [self showNavbar];
}

But it doesnt work :(

natijauskas avatar Mar 22 '14 14:03 natijauskas

Did you set your view controller as the frosted controlelr delegate? Something along these lines:

[self.frostedViewController setDelegate:self];

andreamazz avatar Mar 22 '14 14:03 andreamazz