ios - iCarousel: scrolling speed is directly-proportional to "spacing" (distance) between items? -


icarousel

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

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -