简体   繁体   English

带有allowEditing = YES的UIImagePickerController视频无法点击

[英]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.

相关问题 UIImagePickerController allowEditing = YES仅用于视频 - UIImagePickerController allowsEditing=YES just for video UIImagePickerController的allowEditing属性创建问题 - allowEditing property of UIImagePickerController creating issues UIImagePickerController + Cropping:allowEditing是什么,它不是什么? - UIImagePickerController + Cropping: what does allowEditing and what does it not? UIImagePickerController允许编辑= YES,修剪后获得未修剪的视频 - UIImagePickerController allowsEditing = YES, getting untrimmed video after trimming 点击视频按钮时UIImagePickerController崩溃 - UIImagePickerController crashes when video button is tapped UIImagePickercontroller没有使用按钮保存 - UIImagePickercontroller not saving without use button 压缩视频时UIImagePickerController取消按钮不起作用 - UIImagePickerController cancel button not working when compressing video 禁用重拍,播放和使用视频屏幕UIImagePickerController - Disable the retake, play and use video screen UIImagePickerController UIImagePickerController allowEditing = YES不起作用 - UIImagePickerController allowsEditing = YES not working 如何使用[camera takePhoto]和使用UIImagePicker编辑-UIImagePickerController.allowsEditing = YES - How do I use [camera takePhoto] and edit using UIImagePicker - UIImagePickerController.allowsEditing = YES
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM