iphone - UIScrollView: How would I recycle objects in my scrollable grid when the user scrolls? -


I have got a UIScrollview with images grid. They are currently only 6 but can be a few hundred days. Definitely it would be a bad idea to create some bad UIImageView objects inside that UIScrollView and fill them all with image data. I think I was reading it somewhere in Apple documents: they only need to make so much fun elemends as you need to fill the scrollable visible area.

But I think the performance issues are scared if I instantly get the UIImageView elements. I guess As the user starts to scroll down (say that it starts at 0,0), I have to repeat those UIView objects which exit from the above visible area, let them position them downward And then there are a lot of things (!!) in the lineup that UIImageView instantly creates a new image object. I mean ... if the user starts scrolling like a wild dazzle, fast and fast?

How is your way to do this? Similarly, although in small-scale circumstances, I would like to load it more than necessary for Scroll View dimensions.

But not with the whole data set. I was only scrolling horizontally and I think loading or 1 or 2 images on each side that was present is nice and smooth, it is still loading 3 or 5 images when only 1 Is visible, but it is better to load up to dozens of them.

Representative methods of scroll view can be best utilized by dynamically loading / unloading images.


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -