[英]UIImagePickerController video with allowEditing = YES 'Use' button not clickable
I'm capturing a video that has a 1 minute maxDuration with allowsEditing = YES. 我正在捕获一个具有1分钟maxDuration的视频,其中allowEditing = YES。
Randomly it freezes when it gets to the video editing step where you have the trim, play, and use buttons. 进入视频编辑步骤(具有修剪,播放和使用按钮)时,它会随机冻结。 The trim menu doesn't appear and tapping the use button doesn't do anything.
修剪菜单不会出现,点击使用按钮不会做任何事情。
There doesn't seem to be a pattern related to the freezes. 似乎没有与冻结相关的模式。
The UIImagePickerController has a known memory leak which causes freezing or crashing due to low memory, this is a known bug and it has been there almost from the start. UIImagePickerController有一个已知的内存泄漏,由于内存不足而导致冻结或崩溃,这是一个已知的错误,并且几乎从一开始就存在。 There are various ways in which to help reduce the effect of this leak such as making sure you only allocate the UIImagePickerController once in your app and always use the same instance of it.
有多种方法可以帮助减少此泄漏的影响,例如确保仅在应用程序中分配UIImagePickerController一次,并始终使用它的相同实例。 If you google the UIImagePickerController memory leak you will find lots of articles on how to deal with this issues.
如果您用谷歌搜索UIImagePickerController内存泄漏,则会发现很多有关如何处理此问题的文章。
Hope this helps! 希望这可以帮助!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.