I know how to move a layer based on touch. But I would also like to be able to rotate the image.
Is there any sample code that shows how to do this? Or can anyone give
I ended up doing it like this:
CGAffineTransform transform = CGAffineTransformMakeRotation(angle); [[self viewWithTag:999] setTransform:transform];
Note that the angle is in radians.