阅读背景:

UIScrollView:当用户滚动时,我如何回收可滚动网格中的对象?

来源:互联网 

I've got an UIScrollView with a grid of images. Currently they're only 6, but there might be a few hundred some day. So of course it would be a bad idea to create a few hundred UIImageView objects inside that UIScrollView and fill them all up with image data. I think I was reading this somewhere in the Apple docs: They recommend to only create so mutch elemends as you need to fill up the scrollable visible area.I've got an UIScrollView with a grid of images.




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: