Frank
Frank

Reputation: 3121

Is it possible to loop a UIScrollView/UIPageControl?

Was wondering if it's possible to have a a pagecontrol/scrollview to loop.

Example: When swiping from the last page to the right, it will go to the first page. Or swiping from the first page to the left, it will go to the last page.

Upvotes: 1

Views: 1049

Answers (1)

Felix
Felix

Reputation: 35384

You can use the iCarousel control for that. With iCarouselTypeLinear it looks pretty much like a paged scrollview.

Implement the delegate method - (BOOL)carouselShouldWrap:(iCarousel *)carousel; to return YES.

Upvotes: 1

Related Questions