Browse Source

Pull from the root TabBarController (#4637)

Patrick Aubin 6 years ago
parent
commit
8cee745334
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      lib/ios/Constants.m

+ 1
- 1
lib/ios/Constants.m View File

15
 }
15
 }
16
 
16
 
17
 + (CGFloat)bottomTabsHeight {
17
 + (CGFloat)bottomTabsHeight {
18
-	return UIApplication.sharedApplication.delegate.window.rootViewController.tabBarController.tabBar.frame.size.height;
18
+	return CGRectGetHeight(((UITabBarController *)((UIWindow *)(UIApplication.sharedApplication.windows[0])).rootViewController).tabBar.frame);
19
 }
19
 }
20
 
20
 
21
 @end
21
 @end