Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

rocky612

macrumors newbie
Original poster
Feb 27, 2009
2
0
Ukraine, Donetsk
Hi!
I know there was such topic. but there's no answer.
the problem is I need to know the current position of animated CALayer, while it's moving from point A to Point B. i don't know how to get it:confused:. is it possible? are there any solutions?

Please help!
 

Jeremy1026

macrumors 68020
Nov 3, 2007
2,215
1,029
Hi!
I know there was such topic. but there's no answer.
the problem is I need to know the current position of animated CALayer, while it's moving from point A to Point B. i don't know how to get it:confused:. is it possible? are there any solutions?

Please help!

No, as soon as the item begins its animation its coordinates are set to the ending location. There is no way to track its location as it moves using a single Core Animation translation. You could however, do a short animation and repeat it until it gets to its final location, that way you will know the item is at (0,20), (20,20), (40,20), (60,20) etc.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.