Browse Source

new overwrite request

Marino Faggiana 7 years ago
parent
commit
4c08df4977
1 changed files with 6 additions and 3 deletions
  1. 6 3
      iOSClient/Main/CCMain.m

+ 6 - 3
iOSClient/Main/CCMain.m

@@ -1622,10 +1622,13 @@
             
                 [alertController addAction:cancelAction];
                 [alertController addAction:overwriteAction];
-
-                [self presentViewController:alertController animated:YES completion:nil];
            
-            
+                UIWindow *alertWindow = [[UIWindow alloc]initWithFrame:[UIScreen mainScreen].bounds];
+                alertWindow.rootViewController = [[UIViewController alloc]init];
+                alertWindow.windowLevel = UIWindowLevelAlert + 1;
+                [alertWindow makeKeyAndVisible];
+                [alertWindow.rootViewController presentViewController:alertController animated:YES completion:nil];
+                
             } else {
             
                 // Send to Upload Queue