iPad iOS 3.2-4.2 image memory limit
This is a discussion on iPad iOS 3.2-4.2 image memory limit within the iPad Development forums, part of the iPad App Store category; Hi,
I have a webview, where I've created a pageflipper using CSS3.
This works great!
Here's some info about my solution:
- I have two ...
-
iPad Noob!
iPad iOS 3.2-4.2 image memory limit
Hi,
I have a webview, where I've created a pageflipper using CSS3.
This works great!
Here's some info about my solution:
- I have two active divs I from change and to
- The images displayed are rendered in a canvas tag
- I preload two images ahead of the current page using a div with background image
- I only allow the user to flip to the next page if the image has been loaded. So I set an onload callback method on the image to make sure the image gets loaded before flipping
- The images are stored remotely and they are 200 kb
Now, this implementation works for the first 20-25 200 kb remote images. After that, the onload method stops working.
If I don't preload the images it works great. However, it takes too long to load the next page since it hasn't been preloaded.
My theory is that the iPad just can't handle loading two of the same images.
So I created a hash table that stored the pages that had been loaded using preloading. When trying to flip to the next page, I first checked the hash table if the page had been loaded. This solved my onload problem. However, when I did the flip the image wouldn't display before after 2 seconds even though it had been loaded.
I've almost tried anything and I can't think of anything else. I've spent one week trying to fix this and I sincerely hope you guys have some input of what I can do.
It works in iOS 4.3 but 3.2-4.2 doesn't work, which I would like to support.
Thank you!
-
04-22-2011 10:15 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
Similar Threads
-
By rickjackson in forum iPad Development
Replies: 0
Last Post: 04-15-2011, 01:24 AM
-
By AnibEoj in forum iPad Games
Replies: 3
Last Post: 09-29-2010, 12:21 AM
-
By Yoshiki UK in forum iPad General Discussions
Replies: 3
Last Post: 07-06-2010, 01:32 PM
-
By Seadog in forum iPad General Discussions
Replies: 6
Last Post: 05-11-2010, 02:22 PM
-
By iDan in forum Apple iPad News
Replies: 1
Last Post: 03-24-2010, 10:27 AM
Search tags for this page
image+preload%2c ios
,
ios app memory limit
,
ios application memory limit
,
ios developer ipad memory restriction
,
ios image preload
,
ios memory limit
,
ios preload images
,
ios preloadimages
,
ipad 2 picture limit
,
ipad app memory limit
,
ipad application memory limit
,
ipad image limit
,
ipad image load limit
,
ipad image memory
,
iphone html memory limitation
,
memory ipad limit
,
memory limit ios
,
photo limit on ipad
,
preload for ios
,
too long to load
Click on a term to search for related topics.
Tags for this Thread