UIImagePickerController memory warnings

偶尔善良 提交于 2019-12-24 11:37:59

问题


When having many data extensive apps running in the background (sometimes none), whenever I present the UIImagePickerController, i get a memory warning, usually between 1 and 2. I'm sure its not my code, because it i recieve that memory warning as soon as the camera view is presented. I'm keeping my instance of the UIImagePickerController in the app delegate (after reading countless articles). Anyone have any advice?


回答1:


A memory warning isn't a sign of a bug necessarily. Bringing up the image picker uses memory. If you're already running low, it'll trigger a warning. . Sounds like you need to be a little more careful with your ambient memory management? Or make sure you dump resources before you bring up the picker.




回答2:


Yeah, memory warnings happen. Don't fuss about it until apps start getting killed. Even then, it's only really a problem when the foreground app gets killed.

Of course, this doesn't discharge you from having to be as frugal with resources as you can - but sometimes there's just no way around it.



来源:https://stackoverflow.com/questions/6129954/uiimagepickercontroller-memory-warnings

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