Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iPhone Development - Memory limitation for iphone application

Tags:

memory

iphone

Can anyone point into the right direction here. I want to respond when my application receives memory warning, (i want to know how to respond to this notification). Plus, How much memory can i wire with my application?

Any articles or book reference would be great. Thanks.

like image 455
Mustafa Avatar asked Jan 19 '09 13:01

Mustafa


People also ask

How much memory can an app use iOS?

Beta versions of iOS 15 and iPadOS 15 now give developers the option of requesting more RAM than the current 5GB maximum per app, with limitations. Apple has always set a cap on how much RAM any one app can use on the iPad, but it's become more of an issue as the devices themselves physically include more.

How much RAM do I need for iOS development?

Fast 512GB SSD for opening Xcode projects quickly (many small files) Fast 16 GB RAM large enough for nearly all developer workflows. Mobile (Laptop with 16" built-in screen, keyboard & trackpad)

How big should an iOS app be?

And the average iOS app file size is 34.3MB. But these figures include mobile apps that have a release date in the distant past. Indeed, if we look at mobile apps released in the past month, we see an average Android app file size of 14.6MB. And an average of 37.9MB for iOS mobile apps.

Does iOS use swap memory?

Memory Consumption The iOS virtual memory model does not include swap memory, which means that, unlike with desktop apps, the disk cannot be used to page memory.


1 Answers

If your app gets a memory warning (such as in your view controller's didReceiveMemoryWarning method) you need to release any non-critical data. Anything that you're using that cached, for example, or that can be regenerated, should be dumped.

For example, if your app crunches some numbers and stores the result in a big array, if you're not actively using that array, you should release it. Then, regenerate it when you need it again.

A little more information is here: Observing Low-Memory Warnings

like image 54
August Avatar answered Oct 20 '22 06:10

August