ios - UIVideoEditorController 不断取消而不是保存
问题描述
我已经设置了 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)
}
有谁知道这是为什么,或者我是否需要额外的配置才能让它工作?
解决方案
推荐阅读
- node.js - 为生产 Node.JS 配置环境变量
- java - 如何在 Java 中获取 akka 的演员姓名?
- c# - 无法删除和更新 JSON 字符串 C#
- react-native - 与 FlatList 的 renderItem 一起使用时,ListItem 的 onPress 捕获所有元素的列表的最后一个元素
- javascript - ReactJS onClick 在特定 div 中不触发?
- javascript - 如何在 HTML Visual Studio 中显示数组中的对象
- c++ - 我总是在使用 Visual Studio 2019 和 OpenCV 的链接器中遇到错误
- python-3.x - 需要帮助来弄清楚如何更新一些 python 字典列表中的 key.value
- php - 如何使用正则表达式或数组将输入字符串转换为所需(给定)格式?
- angular - NGXS | 路由返回旧数据后选择