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

imaumac

macrumors member
Original poster
Oct 15, 2008
52
0
hi, some one know how can I spin tire (car tire)
The car is not moving, just the tire. (like the picture)

can i put a gif, .mov, flv? or another?

remember just the tire.....have an idea please?

spintire.jpg
 

MontyClift

macrumors newbie
Sep 2, 2008
18
0
Im doing something similar to this but not sure if it will work for you as the tire is at an angle...
Basically I have created a seperate image with just the wheel and layered it in Interface Builder on top of the background in the exact spot it would have been in the original picture.

Code:
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDuration:WHEEL_DURATION_SECONDS];
	
// rotate the wheel
CGAffineTransform transform = wheelView.transform;
transform = CGAffineTransformRotate(transform, (M_PI));
wheelView.transform = transform;
	
[UIView commitAnimations];
 

imaumac

macrumors member
Original poster
Oct 15, 2008
52
0
I think I understand,
but to understand more deep,
could you explain step by step, line by line please ?

very grateful.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.