我使用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)
}
答案 0 :(得分:1)
无法以全屏显示BasicAuthProperties properties = basicAuthProperties();
http.requestMatchers().antMatchers(properties.getPath())
.and()
.sessionManagement()
.sessionCreationPolicy(SessionCreationPolicy.STATELESS)
.and()
.csrf().disable();
。您可以将其放在某个UIVideoEditorController
控制器中。然后为该容器控制器container
配置屏幕边界。您将获得几乎全屏大小的弹出窗口。
preferredContentSize