内存在iPhone上使用限制 [英] Memory uses limit on iPhone
问题描述
iOS被踢之前应用程序的内存量是多少?
内存量是否取决于设备版本?
我开发了一个使用30+ mb的应用程序,它在iPhone 2g上被踢了。可以在iPhone 4或3GS上运行吗?
What is the amount of memory an app can take before getting kicked by iOS? Does the amount of memory depends on the device version? I have developed an app which is using 30+ mb and its getting kicked on iPhone 2g. Can it work on iPhone 4 or 3GS?
推荐答案
iPhone 2上的所有应用程序资源应该可以保持在20 MB以下。你可以稍微过一点,但就是这样,否则会发生内存警告。一切只有128 MB的物理内存 - 这就是操作系统以及你自己的应用程序。
All your application's resources on an iPhone 2 should probably stay at less than 20 MB. You can go a little over, but that's it, otherwise the memory warnings will occur. There's only 128 MB of total physical ram for everything - that's the OS as well as your own app.
这篇关于内存在iPhone上使用限制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!