Stopping image at 'pos' position. Again

Discussion in 'iOS Programming' started by rocky612, Feb 28, 2009.

  1. macrumors newbie

    Joined:
    Feb 27, 2009
    Location:
    Ukraine, Donetsk
    #1
    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!
     
  2. macrumors 68000

    Joined:
    Nov 3, 2007
    #2
    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. thread starter macrumors newbie

    Joined:
    Feb 27, 2009
    Location:
    Ukraine, Donetsk

Share This Page