标签:
曾经项目里的一段源码:
1
|
UIImageView * activityImageView = [[UIImageView alloc] init];
|
1
|
//创建一个CGAffineTransform transform对象
|
1
|
/* Duration 动画持续时间
|
继承关系:CATransition -> CAAnimation
1
|
CATransition *transition = [CATransition animation];
|
继承关系:CABasicAnimation,CAKeyframeAnimation -> CAPropertyAnimation -> CAAnimation
CABasicAnimation
1
|
CABasicAnimation * animation = [CABasicAnimation animation];
|
CAKeyframeAnimation 例一
1
|
CAKeyframeAnimation * animation = [CAKeyframeAnimation animation];
|
CAKeyframeAnimation 例二
1
|
CGRect boundingRect = CGRectMake(-150, -150,300, 300);
|
1
|
CABasicAnimation *animation = [CABasicAnimation animationWithKeyPath:@"transform.scale"];
|
1
|
POPBasicAnimation *anim = [POPBasicAnimation animationWithPropertyNamed:kPOPLayerScaleXY];
|
1
|
POPSpringAnimation *anim = [POPSpringAnimation animationWithPropertyNamed:kPOPLayerPosition];
|
1
|
POPDecayAnimation *anim = [POPDecayAnimation animationWithPropertyNamed:kPOPLayerPositionX];
|
有时间详细整理下:
http://onevcat.com/2013/10/vc-transition-in-ios7/
标签:
原文地址:http://www.cnblogs.com/ioshe/p/5481459.html