iphone - UIImage rotation axis -


i want rotate image (uiimage) can default axis dead centre of image ! in fig a. want move axis centre of x axis @ foot of image in fig b. can me this? can think of work arounds such placing image on imaginary circle around origin centre of image position, rotate objects. complicated , unneccessary. imagine want place number of images around clock face origin in centre clock hands originate, that's want achieve. (the maths doing appreciated).

(mid x axis , mid y axis).

try using view's underlying calayer's anchorpoint property.

http://developer.apple.com/library/mac/documentation/graphicsimaging/reference/calayer_class/introduction/introduction.html#//apple_ref/doc/uid/tp40004500-ch1-sw36


Comments