Image Caching Problem in iPhone
<p>I have briefly described the working of my application to under stand my Question.</p>

<p>I have an application, in which more than 1600 images are stored with in iPhone-Application-Document Directory.
I have a tableView on Main Screen as follows.
=>First Category
=>Second Category
=>Third Category</p>

<p>=>if user selects First category, Images are loaded in my ScrollView<br>
Like <br>
|--------------------Page View Controller-----------------|<br>
| First Image | Second Image | Third Image | Fourth Image |<br>
|--------------------Page View Controller-----------------|<br></p>

<p>After selecting Category, User can see - First Image From Page view Controller &amp; others are already loaded in page View Control, user has to just scroll left - right to see the other images, but at a time user can see only one image.(that is the task of page view control)</p>

<p><strong>Now Each Page has an Image View Placed in Scroll View (so user can zoom in out)</strong></p>

<p>All this things work Perfectly,</p>

<p>Problem occurs in following situation.<br>
=><strong>After watching first category</strong>'s images<br>
=>User presses <strong>Back</strong><br>
=>Now user <strong>selects second category</strong> to view all images of second category are loaded in page view controll.<br></p>

<p>iPhone terminates the application in the given situation. (as it can't load all images to page view control)
(<strong>each image</strong> is of at-least <strong>4 MB approximately</strong>.)</p>

<p>iPhone <strong>simulator works perfectly</strong> in described situation but <strong>iPhone doesn't</strong>.
<strong>iPhone terminates</strong> the application in given situation.</p>

<p>I think there might be memory caching problem in iPhone.</p>

<p>Question is how to resolve this problem?</p>

<p>Thanks in advance for helping me.</p>
