Comments (11)
好的,非常感谢提醒,虽然目前没有条件复现,但是今天我会更新一下代码。
from jxbanner.
测试了一下你提供的代码会产生错误,params.cycleWay == .forward时不能自动滚动。
from jxbanner.
两个判断条件
第一 collectionView.numberOfItems(inSection: indexPath.section) > indexPath.row
第二 let _ = collectionView.dataSource?.collectionView(collectionView, cellForItemAt: indexPath)
请问是哪个条件卡住了
from jxbanner.
可以帮我测试一下在:private func refreshData() 方法中使用下面代码吗?
placeholderImgView.isHidden = pageCount > 0
collectionView.performBatchUpdates {[weak self] in
self?.collectionView.reloadData()
} completion: { [weak self] _ in
self?.reinitializeIndexPath()
}
from jxbanner.
对,就是第二个条件用这种循环滚动方式(params.cycleWay == .forward)会返回空。
from jxbanner.
params.cycleWay == .forward 这样设置的情况下是吧
from jxbanner.
对,然后你使用我提供你的代码 看一下能解决你的问题吗
from jxbanner.
好的,我稍后试一下这段代码,测试设备在占用中
from jxbanner.
from jxbanner.
我尝试添加performBatchUpdates方法,在 iOS11、12、14系统运行,目前没有发现crash问题了。
from jxbanner.
好的 谢谢
from jxbanner.
Related Issues (20)
- JYPageControlScale指示器的外观圆角可以设置成外部控制吗
- ios 14.6 第一次执行reloadView 会执行 cellforitem 再次执行reloadview不会 执行cellforitem HOT 1
- 当cell中imageView.contentMode = .scaleAspectFill,切banner为全屏大小时,两边出现偏差
- ios12图片只有1图的时候crash HOT 2
- 轮播图不支持垂直滚动吗?scrollDirection = .vertical HOT 1
- 类似rippleEffect这种转场效果,怎么用在layoutType上
- 显示异常 HOT 1
- crash HOT 1
- 能否支持一下垂直方向 HOT 1
- 滑动的时候,动画很生硬,跟卡一下似得
- 视频的时候如何自动滚动
- 偶现闪退
- 能否支持上下滚动 HOT 1
- 阿拉伯语言的RtoL可以适配吗
- 手动拖拽距离大于cell一半位置松手会回弹到原来位置
- isPagingEnabled(false) and isAutoPlay(true)
- JXBanner支持SwiftUI吗?
- fix reuse scrollToItem: to mask the bug of inaccurate scroll position,避免重复scrollToItem
- 阿拉伯语适配
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jxbanner.