What is the default animation duration for UICollectionView layout changes?

后端 未结 1 490
一生所求
一生所求 2021-01-06 04:36

Say I do this:

[self.collectionView setCollectionViewLayout:myNewLayout animated:YES];

What is the duration of the animation that happens?<

相关标签:
1条回答
  • 2021-01-06 04:47

    It you know you're inside a UIView animation, then [CATransaction animationDuration] will give you what you need.

    0 讨论(0)
提交回复
热议问题