iOS:CALayer锚点的使用

CALayer层的位置主要和position和anchorPoint有关。其中它们在一起才能决定层在视图中的具体位置。 @property CGPoint position;         //位置 @property CGPoint anchorPoint;  //锚点 锚点的范围:(0.0~1.0) 具体的演示如下: 1、采用默认的锚点(0.5,0.5) - (void)viewDidLoa
相关文章
相关标签/搜索