Memory used by any iPhone app

后端 未结 2 1034

There are a few things that I don\'t understand about iOS memory management.

  1. I wanted to know how much memory typically an iPhone app takes while running on

2条回答
  •  孤城傲影
    2021-01-03 04:35

    Q1) There isn't a fixed value, of course. Every application (and application instance) will use a different amount of memory depending on it's task(s). There is a maximum, however. Reaching this maximum will trigger a memory warning and the OS may kill it.

    Q2) Images: Depends on how many you are showing at once, or through animations.

    Q3) The application in the foreground gets the most memory allocated to it. Applications in the background can request memory to perform background tasks.

    Good article for best practices:

    http://inessential.com/2010/06/28/how_i_manage_memory

提交回复
热议问题