什么是UICollectionView布局更改默认的动画时间? [英] What is the default animation duration for UICollectionView layout changes?

查看:182
本文介绍了什么是UICollectionView布局更改默认的动画时间?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

说我这样做:

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

那是什么情况?

我的这个应用程序是我在动画的时候这个变化,因为层动画不要被的UIView 引起了细胞的块级内层性质基于动画,我有我自己的动画块单独做到这一点。

My application of this is that I'm animating layer properties inside the cells when this changes, and because layer animations don't get caught by UIView's block-based animations, I have to do it separately with my own animation block.

推荐答案

这你知道你是一个的UIView 动画里面,那么 [CATransaction animationDuration] 会给你你所需要的。

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

这篇关于什么是UICollectionView布局更改默认的动画时间?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆