From 38e5b98355b1cbf9a4bf8ee446b32b45be5d7a25 Mon Sep 17 00:00:00 2001 From: Andrea Mazzini Date: Fri, 22 Nov 2013 13:23:27 +0100 Subject: [PATCH] fixed issue 2 --- AMScrollingNavbar/AMScrollingNavbarViewController.h | 8 +++++++- AMScrollingNavbar/AMScrollingNavbarViewController.m | 5 +++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/AMScrollingNavbar/AMScrollingNavbarViewController.h b/AMScrollingNavbar/AMScrollingNavbarViewController.h index 4707b3e7..eaf3d3df 100644 --- a/AMScrollingNavbar/AMScrollingNavbarViewController.h +++ b/AMScrollingNavbar/AMScrollingNavbarViewController.h @@ -23,10 +23,16 @@ */ - (void)followScrollView:(UIView*)scrollableView; -/** NAvbar slide down +/** Navbar slide down * * Manually show the navbar */ - (void)showNavbar; +/** Navbar refresh + * + * Use this method when you manually change the navbar items to re-enable the fadeout + */ +- (void)refreshNavbar; + @end diff --git a/AMScrollingNavbar/AMScrollingNavbarViewController.m b/AMScrollingNavbar/AMScrollingNavbarViewController.m index b3b7ca8f..0f6b2942 100644 --- a/AMScrollingNavbar/AMScrollingNavbarViewController.m +++ b/AMScrollingNavbar/AMScrollingNavbarViewController.m @@ -196,4 +196,9 @@ - (void)updateSizingWithDelta:(CGFloat)delta self.scrollableView.layer.frame = frame; } +- (void)refreshNavbar +{ + [self.navigationController.navigationBar bringSubviewToFront:self.overlay]; +} + @end