设置隐式动画播放时间

1 [CATransaction begin];
2 [CATransaction setAnimationDuration:2];
3       self.layer.zPosition = 3;
4       self.layer.bounds = CGRectMake(0, 0, 100, 100);
5 [CATransaction commit];
原文地址:https://www.cnblogs.com/sell/p/2911205.html