1

我想使用 iCarouse 实现页面滚动,就像 UIScrollView 分页

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
4

2 回答 2

4

用这个:

carousel.decelerationRate = 0.0f;
于 2013-10-18T12:48:00.957 回答
1

利用carousel.pagingEnabled = YES;

于 2015-10-01T13:52:49.090 回答