美文网首页
anchorPoint与positon

anchorPoint与positon

作者: 暗光的技术小站 | 来源:发表于2018-08-22 17:21 被阅读0次

如下公式:

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