3
votes

I'm using iCarousel in rotary mode. I'd like to have my views scrolled one by one in a paginated way. I've tried many settings but couldn't manage to do that.

The settings i'm looking for is a bit like "pagingEnabled" in UIScrollView, but with the addition that a swipe motion should never scroll more than one view. I tried to perform "[stop animation]" in the "carouselCurrentItemIndexDidChange" method without luck.

I first thought that stopAtItemBoundary property would let me do that, but it doesn't. I just means the carousel will stop at an item, but i lets the user swipe more than one at a time.

Anyone ?

2
once set the value scrollSpeed = 0.0f; in icarosel.mBalu
@Sunny : thanks, scrollSpeed is also a good way. But it isn't enough by itself, you may still scroll by a large swipe. All in all, i had to use a combination of scrollSpeed, decelerationRate and offsetMultiplier to ensure that the swipe never shows more than one itemBen G

2 Answers

1
votes

set decelerationRate to a lower value like 0.5.

You may need to tweak this value to suit your view sizes, but it will have the effect of reducing the distance the carousel moves when flicked.

0
votes

Set 'isPagingEnabled = true'. This would help

This is available in latest version of iCarousel. But it won't help in auto scroll though.