소스 검색

Fix for #1131

Signed-off-by: Philippe Weidmann <philippe.weidmann@infomaniak.com>
Philippe Weidmann 5 년 전
부모
커밋
56abea8e32
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      iOSClient/AppDelegate.m

+ 2 - 1
iOSClient/AppDelegate.m

@@ -909,7 +909,8 @@ PKPushRegistry *pushRegistry;
 - (NSString *)getTabBarControllerActiveServerUrl
 {
     UISplitViewController *splitViewController = (UISplitViewController *)self.window.rootViewController;
-    UITabBarController *tabBarController = [splitViewController.viewControllers firstObject];
+    UINavigationController *masterNavigationController = [splitViewController.viewControllers firstObject];
+    UITabBarController *tabBarController = [masterNavigationController.viewControllers firstObject];
 
     NSString *serverUrl = [CCUtility getHomeServerUrlActiveUrl:self.activeUrl];
     NSInteger index = tabBarController.selectedIndex;