views:

43

answers:

1

I want to animate the resize of a CALayer. It needs to expand from the left (the right side needs to stay put). Setting the anchorPoint will make resizes work this way, but once I start animating, it doesn't behave the way I want it to.

Does anyone have a suggestion? Thanks, and sorry for the noob-question.

+2  A: 

Try calculating a new position based on the desired resize, and setting the layer's position at the same time as you set its new bounds.

jtbandes
Thanks, Jacob. I'll give that a shot.
Jonathan Sterling