2013-01-24 47 views
1

我想用iCarouse的就是喜歡的UIScrollView分頁IOS怎麼做出這樣的UIScrollView頁iCarousel滾動

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 
+0

@mstfbsnli我的iCarouse在頁面中顯示三個項目,當我滾動iCarouse時,它是連續滾動多個項目。 – zt9788

+0

已嘗試所有可用的類型(carousel.type)? – jjpp

回答

4

使用此:

carousel.decelerationRate = 0.0f; 
1

使用carousel.pagingEnabled = YES;