Giter Site home page Giter Site logo

Comments (11)

Coder-TanJX avatar Coder-TanJX commented on May 24, 2024

好的,非常感谢提醒,虽然目前没有条件复现,但是今天我会更新一下代码。

from jxbanner.

Coder-TanJX avatar Coder-TanJX commented on May 24, 2024

测试了一下你提供的代码会产生错误,params.cycleWay == .forward时不能自动滚动。

from jxbanner.

Next-Future-X avatar Next-Future-X commented on May 24, 2024

两个判断条件
第一 collectionView.numberOfItems(inSection: indexPath.section) > indexPath.row
第二 let _ = collectionView.dataSource?.collectionView(collectionView, cellForItemAt: indexPath)
请问是哪个条件卡住了

from jxbanner.

Coder-TanJX avatar Coder-TanJX commented on May 24, 2024

可以帮我测试一下在:private func refreshData() 方法中使用下面代码吗?
placeholderImgView.isHidden = pageCount > 0
collectionView.performBatchUpdates {[weak self] in
self?.collectionView.reloadData()
} completion: { [weak self] _ in
self?.reinitializeIndexPath()
}

from jxbanner.

Coder-TanJX avatar Coder-TanJX commented on May 24, 2024

对,就是第二个条件用这种循环滚动方式(params.cycleWay == .forward)会返回空。

from jxbanner.

Next-Future-X avatar Next-Future-X commented on May 24, 2024

params.cycleWay == .forward 这样设置的情况下是吧

from jxbanner.

Coder-TanJX avatar Coder-TanJX commented on May 24, 2024

对,然后你使用我提供你的代码 看一下能解决你的问题吗

from jxbanner.

Next-Future-X avatar Next-Future-X commented on May 24, 2024

好的,我稍后试一下这段代码,测试设备在占用中

from jxbanner.

Coder-TanJX avatar Coder-TanJX commented on May 24, 2024

WeChat53aabe6a1b96179285c607de4bb9eb53

from jxbanner.

Next-Future-X avatar Next-Future-X commented on May 24, 2024

我尝试添加performBatchUpdates方法,在 iOS11、12、14系统运行,目前没有发现crash问题了。

from jxbanner.

Coder-TanJX avatar Coder-TanJX commented on May 24, 2024

好的 谢谢

from jxbanner.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.