如何在iPad中全屏显示UIVideoEditorViewController

时间:2016-07-26 05:23:27

标签: ios swift uivideoeditorcontroller

我使用UIVideoEditorViewController修剪所选视频。问题是editorController必须以iPad的popover风格呈现。当我在iPad上运行它时,编辑器视图会弹出左上角而不是全屏。有没有办法让全屏尺寸的弹出视图?感谢

    if UIVideoEditorController.canEditVideoAtPath(tmp) {
        editVideoViewController = self.storyboard?.instantiateViewControllerWithIdentifier("editorVC") as! EditorViewController
        editVideoViewController.delegate = self
        editVideoViewController.videoPath = tmp
        editVideoViewController.videoMaximumDuration = 30
        editVideoViewController.videoQuality = .TypeHigh
        editVideoViewController.modalPresentationStyle = UIModalPresentationStyle.Popover

        editVideoViewController.popoverPresentationController?.sourceView = editVideoViewController.view

        self.presentViewController(editVideoViewController, animated: true, completion: nil)

    }

1 个答案:

答案 0 :(得分:1)

无法以全屏显示BasicAuthProperties properties = basicAuthProperties(); http.requestMatchers().antMatchers(properties.getPath()) .and() .sessionManagement() .sessionCreationPolicy(SessionCreationPolicy.STATELESS) .and() .csrf().disable(); 。您可以将其放在某个UIVideoEditorController控制器中。然后为该容器控制器container配置屏幕边界。您将获得几乎全屏大小的弹出窗口。

preferredContentSize