如下公式:
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/
本文标题:anchorPoint与positon
本文链接:https://www.haomeiwen.com/subject/bimyiftx.html
网友评论