|
12 | 12 |
|
13 | 13 | #define LTHiOS8 ([[[UIDevice currentDevice] systemVersion] compare:@"8.0" \ |
14 | 14 | options:NSNumericSearch] != NSOrderedAscending) |
| 15 | +#define LTHiOS11 ([[[UIDevice currentDevice] systemVersion] compare:@"11.0" \ |
| 16 | +options:NSNumericSearch] != NSOrderedAscending) |
15 | 17 | #define LTHiPad (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) |
16 | 18 |
|
17 | 19 | #if __IPHONE_OS_VERSION_MIN_REQUIRED >= 70000 |
@@ -618,9 +620,20 @@ - (void)_dismissMe { |
618 | 620 | #pragma mark - UI setup |
619 | 621 | - (void)_setupNavBarWithLogoutTitle:(NSString *)logoutTitle { |
620 | 622 | // Navigation Bar with custom UI |
621 | | - self.navBar = |
622 | | - [[UINavigationBar alloc] initWithFrame:CGRectMake(0, LTHMainWindow.frame.origin.y, |
623 | | - LTHMainWindow.frame.size.width, 64)]; |
| 623 | + if (LTHiOS11) { |
| 624 | + UIView *patchView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, LTHMainWindow.frame.size.width, [LTHPasscodeViewController getStatusBarHeight])]; |
| 625 | + patchView.backgroundColor = [UIColor whiteColor]; |
| 626 | + [self.view addSubview:patchView]; |
| 627 | + self.navBar = |
| 628 | + [[UINavigationBar alloc] initWithFrame:CGRectMake(0, [LTHPasscodeViewController getStatusBarHeight], |
| 629 | + LTHMainWindow.frame.size.width, 44)]; |
| 630 | + } |
| 631 | + else { |
| 632 | + self.navBar = |
| 633 | + [[UINavigationBar alloc] initWithFrame:CGRectMake(0, LTHMainWindow.frame.origin.y, |
| 634 | + LTHMainWindow.frame.size.width, 64)]; |
| 635 | + } |
| 636 | + |
624 | 637 | self.navBar.tintColor = self.navigationTintColor; |
625 | 638 | if ([self respondsToSelector:@selector(setEdgesForExtendedLayout:)]) { |
626 | 639 | self.navBar.barTintColor = self.navigationBarTintColor; |
|
0 commit comments