开发者

UIScrollView With Large Number of Images To Show

开发者 https://www.devze.com 2022-12-25 04:04 出处:网络
I would like to setup a UIScrollView containing say 5 images to be scrolled. I have 100 images to be scrolled.

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

精彩评论

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

关注公众号