标签:
关键字: Layer , position , Bounds , Frame , anchorPoint.
position 该layer在superLayer中的动画点。
anchorpoint是确定一个内部的position,即用于在layer内的确定动画点位置。
所以内部的innerPostion ==>
innerPostion.x = Bounds.size.x * anchorpoint.x;
innerPostion.y = Bounds.size.y * anchorpoint.y;
推知外部的postion==>
postion.x = frame.organ.x + innerPostion.x;
postion.y = frame.organ.y + innerPostion.y;
标签:
原文地址:http://www.cnblogs.com/rwfeng/p/4874156.html