如下公式:
frame.origin.x = position.x - anchorPoint.x * bounds.size.width;
frame.origin.y = position.y - anchorPoint.y * bounds.size.height
源自:http://wonderffee.github.io/blog/2013/10/13/understand-anchorpoint-and-position/
如下公式:
frame.origin.x = position.x - anchorPoint.x * bounds.size.width;
frame.origin.y = position.y - anchorPoint.y * bounds.size.height
源自:http://wonderffee.github.io/blog/2013/10/13/understand-anchorpoint-and-position/