Scrolling one at a time
I wanted to make the change so that when you swipe it scrolls a maximum of 1 item in that direction instead of multiple. . Seems like a simple change but I can't seem to figure it out. Any help would be a appreciated.
This currently isn't possible. I had the same question. Basically, you'll have to disable iCarousel's user interaction and add on your own swipe gestures that perform a scroll of 1.
If you are implementing a flat, linear carousel, you could use my SwipeView library in paged mode instead. It has the same interface as iCarousel but is based on UIScrollView.
I am implementing a flat linear carousel, but is it possible to have a spacing between the pages as the carousel does?
Yes, just use the swipeViewItemSize method and specify a size that's slightly larger than the views you return from swipeView: viewForItemAtIndex: method.
Worked like a charm. thanks!
Still can't scroll 1 item ???? or you update or add new method to your project ??
Omarj I ended up using his SwipeView library.
@ksmoran what you mean by that ?? how u do it ?
For those who end up on this issue like me, iCarousel now supports single-page swiping by setting pagingEnabled=YES.
i still have issues with scrolling two or 2 or 3 page at a time.i want to restrict it by only one page at any time.i am using rotray type of carousle.can anyone please let me know if this is possible? with swipe right and left gesture it will be swipe only but user will not have manully scroll smoothly.
Works like a charm pagingEnabled=YES. thanks @nicklockwood @vincentnock