Let's apply this hack on the app side.
This commit is contained in:
parent
ce0afb6192
commit
a924866611
|
|
@ -177,16 +177,7 @@ CGFloat tly_AACStatusBarHeight(void)
|
||||||
[self.viewController.view addSubview:self.extensionViewContainer];
|
[self.viewController.view addSubview:self.extensionViewContainer];
|
||||||
|
|
||||||
if (navController.navigationBar.isTranslucent)
|
if (navController.navigationBar.isTranslucent)
|
||||||
{
|
{
|
||||||
// on iOS 8 the background is reset to nil unpredictably.
|
|
||||||
UIView *backgroundView = navController.navigationBar.subviews.firstObject;
|
|
||||||
[self.KVOController observeAndExecute:backgroundView keyPath:@keypath(UIView.new, backgroundColor) block:^(id observer, id object) {
|
|
||||||
if (!backgroundView.backgroundColor)
|
|
||||||
{
|
|
||||||
[backgroundView setBackgroundColor:[UIColor whiteColor]];
|
|
||||||
}
|
|
||||||
}];
|
|
||||||
|
|
||||||
self.navBarController = self.translucentNavBarController;
|
self.navBarController = self.translucentNavBarController;
|
||||||
self.navBarController.view = navController.navigationBar;
|
self.navBarController.view = navController.navigationBar;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue