奇怪的动画与 CSStickyHeaderFlowLayout 和 MJRefresh

strange animation with CSStickyHeaderFlowLayout and MJRefresh

我们的APP使用CSStickyHeaderFlowLayout来收集视差,使用MJRefresh来拉取刷新。

但是拉动之后,有一个奇怪的动画。为了清晰显示,我将动画持续时间设置为 3 秒。动画是:

然后我跟踪MJRefresh的源代码,似乎是以下原因

[UIView animateWithDuration:3 animations:^{

    CGFloat top = self.scrollViewOriginalInset.top + self.mj_h;
    self.scrollView.mj_insetT = top;// maybe the problem
    self.scrollView.mj_offsetY = - top;
} completion:^(BOOL finished) {
    [self executeRefreshingCallback];
}];

我猜是UICollectionView的动画,和increase contentInset碰撞的动画,但我不确定。

你能给我一些线索吗?提前致谢

当您不使用 CSStickyHeaderFlowLayout 时,这是否有效?我怀疑与实现 UICollectionViewLayout appearingattributedItemAtIndexPath:

有关