UIImagePickerController内存警告 [英] UIImagePickerController memory warnings

查看:68
本文介绍了UIImagePickerController内存警告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当在后台运行许多数据扩展应用程序(有时没有)时,每当我出现UIImagePickerController时,我都会收到内存警告,通常在1到2之间.我确定它不是我的代码,因为我收到了它出现摄像机视图后立即显示内存警告.我将UIImagePickerController的实例保留在应用程序委托中(阅读了无数文章之后).有人有什么建议吗?

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?

推荐答案

是的,发生内存警告.在应用程序开始被杀死之前,不要大惊小怪.即使这样,前台应用程序被杀死时,这仍然只是一个真正的问题.

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.

这篇关于UIImagePickerController内存警告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆