Let's apply this hack on the app side.

This commit is contained in:
Mazyad Alabduljaleel 2014-11-05 16:21:43 +04:00
parent ce0afb6192
commit a924866611
1 changed files with 1 additions and 10 deletions

View File

@ -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;
} }