BlackStarLang / BSFramework

多功能 framework,持续集成中。已开发pod组件:图片、视频选择器、图片视频预览控件、自定义相机:拍照+拍摄 ,3D轮播图 + iOS功能点学习(如 runloop、runtime、多线程、AutoreleasePool、DynamicBehavior 等等)
MIT License
28 stars 9 forks source link

3D卡片轮播取值有问题 #5

Closed taojeff closed 1 year ago

taojeff commented 1 year ago

设置_looperView.autoLoop = NO; _looperView.loopStyle = BSLOOP_STYLE_NORMAL;这两个属性后3D轮播为非自动滚动,此时手动滚动一个循环后,会出现图片数据不一致,有逆向回滚的现象

BlackStarLang commented 1 year ago

我这里使用模拟器试了下,暂时没发现问题,能提供具体的代码片段吗? 我的demo代码如下 _looperView = [[BSLooperView alloc]initWithFrame:CGRectMake(20, 300, self.view.width - 40, 180)]; _looperView.cellName = @"BSCollectionViewCell"; _looperView.delegate = self; _looperView.itemSize = CGSizeMake(self.view.width - 120 ,180); _looperView.scale = 0.8; _looperView.isInfinite = YES; _looperView.autoLoop = NO; _looperView.duration = 2; _looperView.loopStyle = BSLOOP_STYLE_NORMAL; ///======================== /// 3D 轮播样式属性 ///======================== // 卡片样式,minimumLineSpacing 无效 _looperView.minimumLineSpacing = 15;

    // 卡片样式,centerOffset 无效
    _looperView.centerOffset = 0;

    // 卡片样式无效
    _looperView.scrollDirection = UICollectionViewScrollDirectionHorizontal;