0

Possible Duplicate:
rotate a UIView around its center but several times
How do you rotate a UIImage 360˚

I simply want an image to spin like a pinwheel. My attempts with CGAffineTransformRotate or CGAffineTransformMakeRotation seem to spin the UIImageView clockwise AND end over end.

I'm just looking for clockwise spinning.

I've "assigned" an image to a UIImage and then make the UIImageView.Image equal to the UIImage.

I then use:

mySpinningImage.transform = CGAffineTransformRotate(mySpinningImage.transform,M_PI);

To attempt, in vain, to have the image fluidly spin clockwise.

Help...

Community
  • 1
  • 1
Sheldon
  • 57
  • 1
  • 3
  • 4
  • Are you making any other modifications to the view at the same time? In my experience that has always made things messy. – fearmint Dec 15 '11 at 02:01
  • (Basically, split it into 2 rotations of 90° or use Core Animation.) – kennytm Dec 15 '11 at 02:22
  • JoePasq... Yes.. I am trying to make it "swell": theFrame.size.width = 250 * incrementStep; theFrame.size.height = 250 * incrementStep; This is in a loop – Sheldon Dec 15 '11 at 02:27

1 Answers1

0

have a look at the last example (the removeWithSinkAnimation method) of this tutorial, I could help you: basic animation