marinofaggiana 4 rokov pred
rodič
commit
6080a81b57

+ 3 - 2
iOSClient/AppDelegate.h

@@ -42,6 +42,7 @@
 @class IMImagemeterViewer;
 @class NCDetailViewController;
 @class NCNetworkingAutoUpload;
+@class NCDocumentPickerViewController;
 
 @interface AppDelegate : UIResponder <UIApplicationDelegate, UNUserNotificationCenterDelegate>
 
@@ -49,8 +50,8 @@
 @property (nonatomic, strong) NSTimer *timerUpdateApplicationIconBadgeNumber;
 @property (nonatomic, strong) NSTimer *timerErrorNetworking;
 
-// For LMMediaPlayerView
-@property (strong, nonatomic) UIWindow *window;
+@property (nonatomic, strong) UIWindow *window;
+@property (nonatomic, strong) NCDocumentPickerViewController *documentPickerViewController;
 
 // Parameter account
 @property (nonatomic, strong) NSString *account;

+ 1 - 1
iOSClient/Main/Menu/AppDelegate+Menu.swift

@@ -68,7 +68,7 @@ extension AppDelegate {
                 action: { menuAction in
                     if let navigationController = (self.window.rootViewController as! UISplitViewController).viewControllers.first as? UINavigationController {
                         if let tabBarController = navigationController.topViewController as? UITabBarController {
-                            NCDocumentPickerViewController.init(tabBarController: tabBarController)
+                            self.documentPickerViewController = NCDocumentPickerViewController.init(tabBarController: tabBarController)
                         }
                     }
                 }