Browse Source

Fixed constants bug (#5201)

* Fixed constants bug (closes #4807)

* Fixed constants bug (closes #4807)
David Jones 5 years ago
parent
commit
663b1c3f60
1 changed files with 5 additions and 1 deletions
  1. 5
    1
      lib/ios/Constants.m

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

@@ -15,7 +15,11 @@
15 15
 }
16 16
 
17 17
 + (CGFloat)bottomTabsHeight {
18
-	return CGRectGetHeight(((UITabBarController *)((UIWindow *)(UIApplication.sharedApplication.windows[0])).rootViewController).tabBar.frame);
18
+	@try {
19
+		return CGRectGetHeight(((UITabBarController *)((UIWindow *)(UIApplication.sharedApplication.windows[0])).rootViewController).tabBar.frame);
20
+	} @catch (NSException *exception) {
21
+		return 0;
22
+	}
19 23
 }
20 24
 
21 25
 @end