[FIX]: make sure we track status bar frame changes
This commit is contained in:
parent
e658e03c0a
commit
30ed689dc9
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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];
|
||||
|
|
|
|||
Loading…
Reference in New Issue