2

我已经设置了 UIVideoEditorController 如下

if UIVideoEditorController.canEditVideo(atPath: video.path) {
    let editController = UIVideoEditorController()
    editController.videoPath = video.path
    editController.delegate = self
    present(editController, animated:true)
}

它将在取消委托调用中结束,然后关闭编辑器

    func videoEditorControllerDidCancel(_ editor: UIVideoEditorController) {
        print("in here")
        editor.dismiss(animated: true, completion: nil)
    }

有谁知道这是为什么,或者我是否需要额外的配置才能让它工作?

4

0 回答 0