IOS如何使iCarousel像UIScrollView页面一样滚动

时间:2013-01-24 10:01:57

标签: iphone ios uiscrollview icarousel

我希望使用iCarouse逐页实现,就像UIScrollView paged

一样

iCarouse代码://它不起作用

carousel.delegate = self;
carousel.dataSource = self;
carousel.scrollSpeed = 0.8f;
//carousel.wrapEnabled = YES;
carousel.stopAtItemBoundary = YES;
carousel.scrollToItemBoundary = YES;
carousel.type = iCarouselTypeCoverFlow;

滚动代码:

[scrollView setPagingEnable:YES];//I want to achieve this

2 个答案:

答案 0 :(得分:4)

使用此:

carousel.decelerationRate = 0.0f;

答案 1 :(得分:1)

使用carousel.pagingEnabled = YES;