How much memory does iOS allow apps to use?

后端 未结 1 409
無奈伤痛
無奈伤痛 2021-01-05 08:26

I am making an app that uses a lot of fairly big image files. I notice it crashes when they all get loaded on my iPhone 3G (128 mb ram), but not when I test it on a 3rd gen

相关标签:
1条回答
  • 2021-01-05 08:44

    The answer is: as much as you want, until the OS complains.

    There is no such thing as an absolute memory limit, since it wholly depends on the phone's memory, how much the OS and its related services are taking up, and the time of the month (just kidding, but you get the idea).

    You should be scaling down these large image files to fit into memory, or even more so, not loading them all at once considering the screen is so small and only so much can be viewed at any one particular time.

    0 讨论(0)
提交回复
热议问题