开发者

UIScrollView With Large Number of Images To Show

I would like to setup a UIScrollView containing say 5 images to be scrolled. I have 100 images to be scrolled. The strategy I am using is as follows: 1. Load and setup images 1 2 3 4 5. 2. Scroll by 1 and move images in subviews such that I now have 2 3 4 5 6 in the same subview set. 3. Scroll again until end开发者_StackOverflow and wrap images in subviews.

I have got the image moves to work but cannot scroll out of the 1 2 3 4 5 set. I can see the next image but cannot get to it.

Any help would be appreciated.


Use a table with a custom view that displays the image. That way, all the scrolling and swapping will be handled for you.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜