Thanks Bill, I hope your enjoying your trip and NSConference.
I worked around this. I ended up animating it off screen, ha.
I think, however, I understand, but let me say it back you.
- Calculate my CGPath.
- Add the path to the animation.
- Add the animation to the actions dictionary (for @”position” key).
- Set the position of the layer to the final position (equal to the last calculated point of the CGPath).
- The animation will run and will remain at the final position.
Just a clarification (and thanks for the help so far).
On the iPhone, if animate and set the final position of a CALayer which backs a UIView, is the center of the UIView set to the new position of the CALayer, or do I have to set the center of the UIView to the position of the CALayer (provided that the anchor point of the layer is its center)?
By the way, I have really enjoyed your book, and even more so your talks on Late Night Cocoa and the MDRT. They have really helped me (begin to) get my head around core animation and the iPhone.