首页 > 其他 > 详细

Layer

时间:2015-10-13 13:32:08      阅读:224      评论:0      收藏:0      [点我收藏+]

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

Layer

原文:http://www.cnblogs.com/rwfeng/p/4874156.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!