All geometric manipulations to a view occur about the its’s anchorPoint
. You can set the anchor point to something other than the view’s center.
Then, for example, if you rotate the view it will apply the transformation around the anchorPoint
rather than it’s visible center.
The anchorPoint
is measured in coordinates relative to the view. It’s default value is (0.5, 0.5)
.