• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Wrapping Content of a UIScrollView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: Can I create a thread with a runloop and a dispatch queue?
  • Next by Date: Re: Runloops and Window Dragging
  • Previous by thread: Re: iOS 7 GUI update lag during drag touches
  • Next by thread: Throttling iOS 7 event callbacks
  • Index(es):
    • Date
    • Thread