You are so cover flow
@implementation SlowFlipView
// Combine something old…
- (void)flipSlowly;
{
// enable perspective transforms
LKTransform sublayerTransform = LKTransformIdentity;
sublayerTransform.m34 = 1.0 / -420.0;
[[[self superview] _layer] setSublayerTransform:sublayerTransform];
[[self _layer] setTransform:LKTransformMakeRotation(M_PI, 0, -1, 0)];
}
// with something new…
- (id)actionForLayer:(LKLayer *)layer forKey:(NSString *)key;
{
if ([key isEqualToString:@”transform”]) {
LKBasicAnimation *flipAnimation = [LKBasicAnimation animationWithKeyPath:key];
[flipAnimation setTimingFunction:[LKTimingFunction functionWithName:@”easeInEaseOut”]];
[flipAnimation setDuration:5.0]; // take yr time there, partner
return flipAnimation;
} else
return [super actionForLayer:layer forKey:key];
}
@end