ios - iCarousel scroll -
how scroll in specific item or index, example: set nsinteger on uiview pass icarousel. in other uiview set nsinteger this:
[[nsuserdefaults standarduserdefaults] setinteger:button.tag forkey:@"integer"]; [[nsuserdefaults standarduserdefaults] synchronize]; when scrolling use :
[carousel scrollbynumberofitems:-35 duration:10.7550f]; how pass integer carousel, make scroll stop specific item or index.
- (void)scrolltoitematindex:(nsinteger)index animated:(bool)animated;` clearly stated , described in readme. first method under methods
or, if prefer:
- (void)scrolltoitematindex:(nsinteger)index duration:(nstimeinterval)scrollduration;`
Comments
Post a Comment