浏览代码

new overwrite request

Marino Faggiana 7 年之前
父节点
当前提交
4c08df4977
共有 1 个文件被更改,包括 6 次插入3 次删除
  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