Parcourir la source

Pull from the root TabBarController (#4637)

Patrick Aubin il y a 6 ans
Parent
révision
8cee745334
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1
    1
      lib/ios/Constants.m

+ 1
- 1
lib/ios/Constants.m Voir le fichier

@@ -15,7 +15,7 @@
15 15
 }
16 16
 
17 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 21
 @end