【发布时间】:2018-06-11 10:40:19
【问题描述】:
我正在使用 UIVideoEditorController,但成功委托方法为我调用了两次。但是,所有传递对象的所有指针都告诉它发送完全相同的数据。
let editor = UIVideoEditorController()
editor.videoMaximumDuration = 10.0
editor.videoQuality = .typeIFrame1280x720
editor.delegate = self
editor.videoPath = // some path goes here
self.present(editor, animated: true, completion: nil)
然后下面的方法打印“这里”2次。
func videoEditorController(_ editor: UIVideoEditorController, didSaveEditedVideoToPath editedVideoPath: String) {
print("here")
self.dismiss(animated: true, completion: nil)
}
【问题讨论】:
-
当我链接到 iOS 13 时,即使用 Xcode 11 构建时,我看到了这个错误。如果我使用 Xcode 10 或更早版本构建,回调只为我调用一次。
标签: ios swift uivideoeditorcontroller