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

KardelSharpeye

macrumors member
Original poster
Apr 28, 2009
56
0
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!
 
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];
 
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!
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.