I looked for a similar solution but couldn't find one. What I did was wrap my UIImageView in an empty UIView (ie no background or anything so that when you load the application its not visible) Then just make the UIView larger than the UIImageView and rotate the UIView.
Example: If you have a square that is 20,20 and you want to rotate at a point that was -10,-10 (ie diagonal to the top left corner). You would then make your UIView 60,60 and place the UIImageView at 40,40. If you then rotated the UIView it would appear that you were rotating it about that -10,-10 location when you would actually be rotating it about the center of the UIView (which is 30, 30).
Make sense?
|