Hi,

I have a subclass of UIScrollView which contains a bunch of image views. The 
requirement is for the Scroll View to "wrap" when the user scroll past the last 
image, e.g. if Scrolling Right when the last image is scrolled onto, to have 
the first image appear as if it is last + 1. If Scrolling left and they scroll 
to past the first image then the last image should appear as if it is image -1.

For example, if I have 5 images:

A B C D E then I want it to display

A B C D E A B C D E A B C D E F

What is the best way to do this?

I thought of taking the first subview of the Scroll View, removing and then 
adding it to the end? Not sure if this will work and not sure how I detect the 
start/end of the list has been hit?

Thanks a lot
Dave


_______________________________________________

Cocoa-dev mailing list ([email protected])

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to