我正在使用UIVideoEditorController,但是对于我来说,成功回调方法被调用了两次。然而,所有传递对象的指针都表明它发送了完全相同的数据。
然后以下方法会打印出“here”2次。
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)
然后以下方法会打印出“here”2次。
func videoEditorController(_ editor: UIVideoEditorController, didSaveEditedVideoToPath editedVideoPath: String) {
print("here")
self.dismiss(animated: true, completion: nil)
}