views:

218

answers:

0

Somehow it doesn't matter which key I provide for the addAnimation method the key will always become 'transition' and there for I can't add more the one animation. Is there a logical explanation for this?

CATransition *animation = [CATransition animation];

animation.delegate            = self;
animation.duration            = 2.0;
animation.timingFunction      = UIViewAnimationCurveEaseInOut;
animation.type                = @"pageCurl";
animation.fillMode            = kCAFillModeForwards;
animation.endProgress         = 0.25;
animation.removedOnCompletion = NO;

[window.layer addAnimation:animation forKey:@"SomeKey"];

NSLog (@"%@", [[window.layer animationKeys] description]);