Merge branch 'master' of github.com:telly/TLYShyNavBar

This commit is contained in:
Mazyad Alabduljaleel 2014-07-20 13:54:31 +04:00
commit 0fd9e806dc
1 changed files with 10 additions and 0 deletions

View File

@ -100,6 +100,8 @@ static inline CGFloat AACStatusBarHeight()
};
self.navBarController.child = self.extensionController;
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(applicationDidBecomeActive) name:UIApplicationDidBecomeActiveNotification object:nil];
}
return self;
}
@ -111,6 +113,7 @@ static inline CGFloat AACStatusBarHeight()
{
_scrollView.delegate = _delegateProxy.originalDelegate;
}
[[NSNotificationCenter defaultCenter] removeObserver:self name:UIApplicationDidBecomeActiveNotification object:nil];
}
#pragma mark - Properties
@ -318,6 +321,13 @@ static inline CGFloat AACStatusBarHeight()
[self _handleScrollingEnded];
}
#pragma mark - Application did become active method
- (void)applicationDidBecomeActive
{
[self.navBarController expand];
}
@end
#pragma mark - UIViewController+TLYShyNavBar category