1. Welcome to the new MacRumors forums. See our announcement and read our FAQ

Stopping image at 'pos' position. Again

Discussion in 'iPhone/iPad Programming' started by rocky612, Feb 28, 2009.

  1. macrumors newbie

    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!
  2. macrumors 68000

    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.
  3. macrumors newbie

    i understand. thank you!!!:)

Share This Page