Transition / Tweening / Moving To Location

Discussion in 'iOS Programming' started by KardelSharpeye, May 18, 2009.

  1. KardelSharpeye macrumors member


    Apr 28, 2009
    Hello all,

    I was just wondering if I can use a sliding animation on an object to a specify (x,y) location on view. I have look at the tutorials and it seems that the entire view is being replaced or pushed out of view and another one comes in. I just need the view to slide half way across the screen or to any point on in the (0, 0, 320, 480) view.

    Any help is greatly appreciated!
  2. dejo Moderator


    Staff Member

    Sep 2, 2004
    The Centennial State
    Basic structure is:

    1. Set start position for your view's frame.
    2. [UIView beginAnimations...
    3. Set end position for your frame.
    4. [UIView commitAnimations];
  3. KardelSharpeye thread starter macrumors member


    Apr 28, 2009
    cool thanks man i didnt know u can halt the animation and change the coords then continue the animation. that helps a lot thank you!

Share This Page