CoderMJLee / MJRefresh

An easy way to use pull-to-refresh.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

tang786472181 opened this issue · comments

描述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