iPhone, How do I rotate an UIImageView around a point using Core Animation and CATransform3D?
This is what I want to do: (1) (2) | / | / | / | / |/ * (3) I want to move an UIImageView represented by a clock pin (width:9px, height 73px) from position (1) to position (2) around point (3) which is one end of the image. I tried to set the anchorpoint to (0,0) or to set the image center to point (517,177) which is the *(3) location on the iPad screen, but I had no success: My degreeToRadians macro is defined in the following way: #define degreesToRadian(x) (M_PI * (x) / 180.0) /* kmPointer is the UIImageView */ NSValue *value = nil; CABasicAnimation *animation = nil; CATransform3D transform