Wrapping Content of a UIScrollView
Wrapping Content of a UIScrollView
- Subject: Wrapping Content of a UIScrollView
- From: Dave <email@hidden>
- Date: Thu, 03 Oct 2013 22:46:19 +0100
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@hidden)
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:
This email sent to email@hidden