Rotate a CALayer when it reaches a certain position
Posted
by jbrennan
on Stack Overflow
See other posts from Stack Overflow
or by jbrennan
Published on 2010-03-24T20:20:11Z
Indexed on
2010/03/24
20:23 UTC
Read the original article
Hit count: 601
I've got a CALayer with two CAKeyframeAnimations added to it. One is for @"transform"
and the other is for @"position"
. I am rotating the layer and translating it with these two animations.
I am wondering, is there a way I can set the keyframes to happen at the same time? I want to have a keyframe for rotation at the exact time my layer has reached a certain (x, y) position.
How is this possible?
© Stack Overflow or respective owner