CGAffineTransforms are what you are looking for and this is one of the rare cases where the Cocoa documetation is actually useful:
CGAFFINETRANSFORMS doc
and there is also this great tutorial using Affine transforms:
http://iphonedevelopment.blogspot.co...transform.html
From the documentation:
CGAffineTransform CGAffineTransformRotate (
CGAffineTransform t,
CGFloat angle
);
so say your UIimageView is called "thingy", Make it rotate 90deg
thingy.transform = CGAffineTransformRotate (
thingy.transform,
M_PI/2); // Pi/2 is 90 degrees remember this?
or for scaling:
CGAffineTransform CGAffineTransformScale (
CGAffineTransform t,
CGFloat sx,
CGFloat sy
);
so say your UIimageView is called "thingy", to make it face the oppisite direction (right to left) you would
thingy.transform = CGAffineTransformScale (
thingy.transform,
-1,
1);
they use matrix transformations (hey school really was important) if this doesn't help hit this thread again I'll see what I can do.