I have a UIImageView that I am animating with the CGAffineTransformMakeRotation but I can't quite figure out how to get it to do a full 360 degree rotation. When I double 3.14 it no longer rotates because it's already there. How do I get past the first 180 degrees?
Any help, direction, links or code is much appreciated.
I am trying to have an image run on a continuous rotating (360 degree) loop like the second hand of clock. Maybe there is an better or easier way of doing this other than CGAffineTransformMakeRotation. I have looked at the GLSprite code and that is a little beyond me right now.
A 360 degree transformation is no transformation, but you cn rotate something a full 360 degrees by applying a smaller rotation multiple times. I would compute the transformation for a 90degree rotation and apply that 4 times in the time you wanted to apply the 360 rotation once.
I tried that... I set rotateAnimation.repeatCount = 4; and the angle to 90 degrees..
Basically it just rotates my view 90 degrees 4 times from the same position. Meaning the transformation isn't combining, but rather it rotates 90 degrees resets back to 0 and does it again 3 more times.
I dont have any experience here so i could be blowing smoke- but i think you would have to save the matrix after every transformation- and combine it with the current matrix when doing a new transformation.