CoderMJLee / MJRefresh

An easy way to use pull-to-refresh.
MIT License
13.79k stars 3.55k forks source link

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

Open tang786472181 opened 2 years ago

tang786472181 commented 2 years ago

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

必现/偶发? 必现

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

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

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

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

运行环境

gitph101 commented 2 years ago

您好,邮件已收到。