views:

41

answers:

2

I am writing an application for iPhone/iPad and I need to implement a function to allow users to upload pdf. i wonder if there are limits on the amount of available memory?

+1  A: 

Of course there is a limit. The iPhone has no swap file so if you use up all available memory, the OS will kill your app. The amount of RAM on iOS devices currently varies between 128 MB (iPhone 3G and older), 256 MB (iPhone 3Gs, iPad) and 512 MB (iPhone 4 and the newest iPod touch). How much of this is available to your app also varies on the amount the OS consumes.

Available memory to the frontmost app can go down to as little as 10-20 MB.

Ole Begemann
Also keep in mind that multi-tasking will further limit the memory available to your application since other apps will be frozen or doing background processes.
iWasRobbed
A: 

I think that it is 48 Mb.

Francois B.