gpt4 book ai didi

iphone - iOS如何使iCarousel像UIScrollView页面一样滚动

转载 作者:行者123 更新时间:2023-12-01 17:57:39 24 4
gpt4 key购买 nike

我想使用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

最佳答案

用这个:

carousel.decelerationRate = 0.0f;

关于iphone - iOS如何使iCarousel像UIScrollView页面一样滚动,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14498519/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com