UIImagePickerController leaking memory after launch and during taking a picture. Makes app crash after taking more than a 100 pictures

冷暖自知 提交于 2019-11-30 21:53:29

I just want to point out that as of IOS 12 this problem still exists and I had to use the Camera of AVFoundation to avoid the crashing. With AVFoundation I can take hundreds of pictures and no memory leak occurred.

I had this problem as well. It appears to be a known bug in UIImagePickerController.

I created a minimal repro app here: https://github.com/davidgoli/UIImagePickerLeakTest

I solved it by implementing my own camera controller using https://github.com/imaginary-cloud/CameraManager.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!