简体   繁体   中英

UIImagePickerController video with allowEditing = YES 'Use' button not clickable

I'm capturing a video that has a 1 minute maxDuration with allowsEditing = 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. 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. If you google the UIImagePickerController memory leak you will find lots of articles on how to deal with this issues.

Hope this helps!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM