ios - iCarousel: scrolling speed is directly-proportional to "spacing" (distance) between items? -
i took linear icarousel
example , tried decrease distance between items. used following code in delegate:
- (cgfloat)carousel:(icarousel *)carousel valueforoption:(icarouseloption)option withdefault:(cgfloat)value { switch (option) { case icarouseloptionspacing: return 0.25; break; default: return value; break; } }
by default spacing
equal 1 , works normally. if change lower value scrolling speed decreased same value.
i tried increase offsetmultiplier
param increases scrolling speed on swipe gestures (it works in case becomes fast).
so how break these dependencies , change space between items only?
try worked me (add in controller)
- (cgfloat)carouselitemwidth:(icarousel *)carousel { //usually should wider item views return 240; }
Comments
Post a Comment