소스 검색

Fixed constants bug (#5201)

* Fixed constants bug (closes #4807)

* Fixed constants bug (closes #4807)
David Jones 5 년 전
부모
커밋
663b1c3f60
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  1. 5
    1
      lib/ios/Constants.m

+ 5
- 1
lib/ios/Constants.m 파일 보기

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