Explorar el Código

Fixed constants bug (#5201)

* Fixed constants bug (closes #4807)

* Fixed constants bug (closes #4807)
David Jones hace 5 años
padre
commit
663b1c3f60
Se han modificado 1 ficheros con 5 adiciones y 1 borrados
  1. 5
    1
      lib/ios/Constants.m

+ 5
- 1
lib/ios/Constants.m Ver fichero

@@ -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