典型的iPhone应用程序的最大内存占用量(以MB为单位)是多少? [英] What's the maximum memory footprint in MB for an typical iPhone app?

查看:153
本文介绍了典型的iPhone应用程序的最大内存占用量(以MB为单位)是多少?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道这是一个主观问题.据我所知,该应用程序大约有25 MB可用空间,但这取决于发生了什么.当前正在播放音乐,当前通话或可能导致大量内存减少的事情.我不知道.

I know this is a subjective question. As far as I know, there are somewhat about 25 MB available for the app, but it depends on what else is going on. Currently playing music, a current phone call or what ever might drop that amount of memory down a lot. I don't know.

只需告诉我们您的想法或经验.我的应用程序当前一次消耗约15 MB的内存,其中大部分图像已加载到视图中进行动画处理.我没有遇到任何问题.但是,是否可以绘制一些边界"来制定简单的规则,例如在任何给定时间不消耗超过x MB的内存",其中x代表最大数量?

Just tell us what you think, or what you have experienced. My app currently consumes about 15 MB at a time, mostly lots of images loaded into views for animation. I have encountered no problems with this. But is there some "border" that can be drawn, to make a simple-to-follow rule like "do not consume more than x MB of memory at any given time", where x stands for the max amount?

推荐答案

该值因设备和用户而异.例如,我每隔几天重启一次手机,以释放苹果声称的丢失的内存和第三者泄漏.我的母亲从来没有独自重启过手机.曾经.她在使用应用程序时遇到了很多麻烦,给我打了电话,我告诉她重新启动电话以增加内存.她确实做到了,而且应用程序也不再崩溃.

This value highly varies per device and per user. For example, I restart my phone every few days, freeing up lost memory claimed by Apple and 3rd party leaks. My mother, has not restarted her phone ever on her own. EVER. She has tons of trouble with apps, gives me a call and I tell her to restart the phone to increase the ram. She does and the apps dont crash anymore.

故事的寓意是:永远不要计划要有可用的内存.在任何给定时间,您都应始终将内存降到所需的最低限度.

Moral of the story is: Never plan on having available memory. You should always keep your memory down to the bare minimum you need at any given time.

这篇关于典型的iPhone应用程序的最大内存占用量(以MB为单位)是多少?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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