View Full Version : spin a tire
imaumac
Oct 19, 2008, 01:13 AM
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?
http://www.1572-8.com/fotos/fotos-server/dev-xcode-cocoa/spintire.jpg
MontyClift
Oct 19, 2008, 01:05 PM
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.
[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
Oct 19, 2008, 09:11 PM
I think I understand,
but to understand more deep,
could you explain step by step, line by line please ?
very grateful.
vBulletin® v3.8.6, Copyright ©2000-2012, Jelsoft Enterprises Ltd.