CB-6769 ios: Fix statusbar color reset wasn't working on iOS7+

close #45
This commit is contained in:
bwin 2014-05-27 16:23:23 +02:00 committed by Andrew Grieve
parent c011fe2d9d
commit 91b84579e8

View File

@ -440,11 +440,11 @@
// Also - this is required for the PDF/User-Agent bug work-around.
self.inAppBrowserViewController = nil;
_previousStatusBarStyle = -1;
if (IsAtLeastiOSVersion(@"7.0")) {
[[UIApplication sharedApplication] setStatusBarStyle:_previousStatusBarStyle];
}
_previousStatusBarStyle = -1; // this value was reset before reapplying it. caused statusbar to stay black on ios7
}
@end