复习iOS动画-layer-2

来源:互联网 发布:snmp及编程实现 编辑:程序博客网 时间:2024/05/17 07:17

1.layer 的 positon 是anchorPoint所在点相对于super layer 的位置,anchorPoint 是 unit coordinate , frame是个合成属性,由bounds,positon,transform影响,当transform改变时,frame是包围矩形。

2. convertPoint:fromLayer: convertPoint:toLayer: convertRect:fromLayer:  convertRect:toLayer:


3.geometriFlipped


4.zPosition z轴上的位置,影响绘制顺序。 anchorPointZ


5.containsPoint:  point在不在layer的bounds里  hitTest:返回一个最远的包含point的layer


6.-(void)layoutSublayersOfLayer:(CALayer*)layer;  手动设置sub layer 的 位置

0 0