[FIX]: make sure we track status bar frame changes

This commit is contained in:
Mazyad Alabduljaleel 2014-11-04 17:03:32 +04:00
parent e658e03c0a
commit 30ed689dc9
2 changed files with 8 additions and 4 deletions

View File

@ -121,14 +121,12 @@ const CGFloat contractionVelocity = 300.f;
- (CGFloat)expand
{
[self.child expand];
return 0.f;
return [self.child expand];
}
- (CGFloat)contract
{
[self.child contract];
return 0.f;
return [self.child contract];
}
@end

View File

@ -147,6 +147,7 @@ CGFloat tly_AACStatusBarHeight(void)
self.navBarController.child = self.extensionController;
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(applicationDidBecomeActive) name:UIApplicationDidBecomeActiveNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(applicationDidChangeStatusBarFrame) name:UIApplicationDidChangeStatusBarFrameNotification object:nil];
}
return self;
}
@ -394,6 +395,11 @@ CGFloat tly_AACStatusBarHeight(void)
#pragma mark - NSNotificationCenter methods
- (void)applicationDidChangeStatusBarFrame
{
[self prepareForDisplay];
}
- (void)applicationDidBecomeActive
{
[self.navBarController expand];