spin a tire

Discussion in 'iOS Programming' started by imaumac, Oct 18, 2008.

  1. imaumac macrumors member

    Oct 15, 2008
    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?

  2. MontyClift macrumors newbie

    Sep 2, 2008
    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];
  3. imaumac thread starter macrumors member

    Oct 15, 2008
    I think I understand,
    but to understand more deep,
    could you explain step by step, line by line please ?

    very grateful.

Share This Page