Reputation: 872
I want to make a carousel which only covers part of the page. I also want it to start over from the beginning when it reaches the end.
Upvotes: 0
Views: 3008
Reputation: 40028
It is relatively easy. You just need to set content offset back to the beginning when you reach the end of the content. It will be transparent for the user and look like endless scroll view.
scrollViewDidScroll:
method if you should adjust the content offset to mimic endless scrolling.Look into this question for implementation details:
how can i make uiscrollview infinite in ios?
Upvotes: 3