How to rotate an image by its bottom center?
I tried to rotate an image by its bottom center by setting the anchorPoint
property of the views layer to CGPointMake(0.5, 1).It did rotate based on
the bottom center,but the image views bottom center was translated to the
image views center position and thus the whole image was translated up by
half the height of the image.How to have the image view retain its center
but still rotate about its bottom center?
Has anyone ever encountered this issue before?
Thanks!
No comments:
Post a Comment