What is the heap size of the application in iphone?

Hi

What is the heap size of the application in iphone? I mean, to what size the application can use the memory on the iphone. Is it the same for ipod, or is it different for iphone or ipod?

What is the downloaded content size on iphone that we can download in our application using NSdata?

thanks

+6
iphone
source share
2 answers

Available memory is not fixed. In addition to differences in the device, there are running processes (system processes) that consume different amounts of device memory, and since there is no virtual memory, all processes are drawn from the same heap.

All iPhones up to 3G and including 3G, and all iPods are affected, at least up to current models (not sure about this), has 128 MB RAM. 3GS has 256 MB.

For devices with a capacity of 128 MB, it is recommended that you try to save below about 26 MB, although you usually need to have up to 60 MB available (you can use the 34 MB gap to cache temporary resources).

Sometimes the available RAM may even drop below 26 MB, so the smaller your size, the better.

+5
source share

This is not documented, but people have reported that memory alerts occur around 20-22 MB on iPod / iPhone 1/2 / 3G and about 128 MB on 3GS.

+2
source share

All Articles