Explorar el Código

1.视频预览和最近文件视频预览,点击删除时无二次弹窗

huangxiaodong hace 11 meses
padre
commit
7d10933d9a

+ 14 - 5
创维盒子/双子星云手机/Class/Set/previewFile/videoPlayByAVPlayerViewController.m

@@ -464,7 +464,7 @@
                 [weakSelf gotoDownLoadFileFun:NO];
             }
             else if (tag == 12){
-                [weakSelf delFileListFun];
+                [weakSelf showDeleteAlearViewFun];
             }
         };
     }
@@ -489,7 +489,7 @@
                 [weakSelf gotoDownLoadFileFun:YES];
             }
             else if (tag == 12){
-                [weakSelf delFileListFun];
+                [weakSelf didClickDeleteInLandscapeFun];
             }
         };
         
@@ -498,6 +498,15 @@
     
 }
 
+#pragma mark 横屏点击删除
+- (void)didClickDeleteInLandscapeFun
+{
+    //横屏的删除 要转竖屏
+    [self.player rotateToOrientation:UIInterfaceOrientationPortrait animated:NO completion:^{
+        [self screenLandscapeToPortraitFun];
+        [self showDeleteAlearViewFun];
+    }];
+}
 
 #pragma mark 视频可以播放 加入最近文件
 - (void)videoPlayerDidFun{
@@ -566,9 +575,9 @@
     
     curAlretVC.modalPresentationStyle = UIModalPresentationCustom;
      
-     [self presentViewController:curAlretVC animated:YES completion:^{
-         curAlretVC.view.superview.backgroundColor = [UIColor clearColor];
-     }];
+    [self presentViewController:curAlretVC animated:YES completion:^{
+        curAlretVC.view.superview.backgroundColor = [UIColor clearColor];
+    }];
 }