I have briefly described the working of my application to under stand my Question.
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
=>if user selects First category, Images are loaded in my ScrollView
Like
|--------------------Page View Controller-----------------|
| First Image | Second Image | Third Image | Fourth Image |
|--------------------Page View Controller-----------------|
After selecting Category, User can see - First Image From Page view Controller & 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)
Now Each Page has an Image View Placed in Scroll View (so user can zoom in out)
All this things work Perfectly,
Problem occurs in following situation.
=>After watching first category's images
=>User presses Back
=>Now user selects second category to view all images of second category are loaded in page view controll.
iPhone terminates the application in the given situation. (as it can't load all images to page view control) (each image is of at-least 4 MB approximately.)
iPhone simulator works perfectly in described situation but iPhone doesn't. iPhone terminates the application in given situation.
I think there might be memory caching problem in iPhone.
Question is how to resolve this problem?
Thanks in advance for helping me.