Layer

关键字: 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;

posted @ 2015-10-13 11:50  MiHuA_rw  阅读(213)  评论(0编辑  收藏  举报