iphone : How to rotate a rectangle image with touch events?
问题 transform a square image or round image is easy to do... But what if a rectangle image ??? This is the image I want to transform with touch event . The circle center is (30 , 236) , if I touch any place on the screen Imageview will transform the arrow to my touch point. But the circle center still the same place . I try to transform the image use a test angle It will become like this ... How to adjust the image ? Also the code is here - (void)viewDidLoad { CGRect arrowImageRect = CGRectMake