Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iOS 15 uicollectionView autofooter 上拉后,会卡顿一下 #1571

Open
tang786472181 opened this issue Jun 18, 2022 · 1 comment
Open
Labels

Comments

@tang786472181
Copy link

描述bug
collectionView上拉 加载自定义gif footer 刚出现界面时会卡顿一下,

必现/偶发?
必现

怎么样重现这个bug
collectionView上拉拖动 footer 刚出现界面就可以复现

你期望的结果是什么?
通过对比发现旧版本3.1.12与最新(3.7.5)在某些写法上有差异
在这个commit上,
628266f

dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.5 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
            [self executeRefreshingCallback];
 });

发现这行代码移除了延迟调用,但是我发现重新加上这行代码之后,footer刚出现在屏幕上就不会对collectionView造成卡顿了,想请教大佬是出于什么原因呢,speed up?,谢谢大佬

运行环境

  • iPhone xs
  • iOS15.5
  • Xcode13.4.1
@gitph101
Copy link

gitph101 commented Jun 18, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants