iPhone OS内存警告。不同级别意味着什么? [英] iPhone OS Memory Warnings. What Do The Different Levels Mean?

查看:140
本文介绍了iPhone OS内存警告。不同级别意味着什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

关于在iPhone OS设备上管理内存的黑色艺术:不同级别的内存警告意味着什么。 1级? 2级?拨号是否转到11?

Regarding the black art of managing memory on iPhone OS devices: what do the different levels of memory warning mean. Level 1? Level 2? Does the dial go to 11?

背景:经过大量的内存压力测试期 - 包括在播放iPod音乐播放器应用程序时运行我的iPad应用程序,我倾向于忽略我收到的随机但不常见的记忆警告。我的应用从不崩溃。永远。我的应用程序是无泄漏的。而且,mems警告似乎并不重要。

Context: After an extensive memory stress testing period - including running my iPad app with the iPod music player app playing, I am inclined to ignore the random yet infrequent memory warnings I am receiving. My app never crashes. Ever. My app is leak free. And, well, the mems warnings just don't seem to matter.

谢谢,

Doug

Thanks,
Doug

推荐答案

基本上警告意味着设备在内存上运行不足,并且如果你可以请你释放一些内存你不是积极使用膨胀!。如果您的内存管理很紧,并且您没有可以实际丢弃的对象,只需传递消息并忽略它。

Basically the warnings mean that the device is running low on memory, and that, "If you could please free some memory you aren't actively using that'd be swell!". If your memory management is tight, and you have no objects that could practically be discarded, just pass the message along and ignore it.

这篇关于iPhone OS内存警告。不同级别意味着什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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