它应该是非常简单的东西,但我还没有成功地使用block来让它工作。对此有问题和答案,但我发现的所有问题都是通过使用CABasicAnimation而不是通过UIViewBlock-BasedAnimation解决的,这正是我所追求的.以下代码不起作用(基于block),没有动画:CGAffineTransformspin=CGAffineTransformRotate(spiningView.transform,DEGREES_RADIANS(360));CATransform3Didentity=CATransform3DIdentity;CATransform3Dspin2=CAT
它应该是非常简单的东西,但我还没有成功地使用block来让它工作。对此有问题和答案,但我发现的所有问题都是通过使用CABasicAnimation而不是通过UIViewBlock-BasedAnimation解决的,这正是我所追求的.以下代码不起作用(基于block),没有动画:CGAffineTransformspin=CGAffineTransformRotate(spiningView.transform,DEGREES_RADIANS(360));CATransform3Didentity=CATransform3DIdentity;CATransform3Dspin2=CAT