// Add animation to layer; also triggers the animation
[layer addAnimation:anim forKey:@"frameOrigin"];
There are several problems with this code:
1) When the code runs, the layer appears containing the loaded image
at (0, 0) as expected, but it doesn't move
2) If I change the keyPath to either @"opacity" or @"borderWidth", the
layer does animate, but as soon as it's done animating, the layer goes
back to its original appearance, and the animation doesn't take the 2
secs to complete - only a fraction
3) The delegate method, animationDidStart:, is only called in (2), not
in (1), and animationDidStop: is never called in any of the scenarios
I'm totally stuck in this. Any help is hugely appreciated. I think I'm
doing what's suggested in the examples in Core Animation Programming
Guide, but obviously not.
Am I handling the layer hierarchy correctly? For example, can I use
the view's backing layer as the root of the layer hierarchy?
Thaks in advance,
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden