// >>>layer简单属性
/*
// 阴影
// **阴影默认为0,要打开
// 1.调整 shadow 的透明度
self.showView.layer.shadowOpacity = 0.5;
// 2.调整 shadow的偏移量,
// width:向右偏移的距离
// height:
self.showView.layer.shadowOffset = CGSizeMake(40, 40);
// 阴影的默认模糊: 是3,值越大,越发散
self.showView.layer.shadowRadius = 7;
//>>>>>>>>>>>>>>>>>>
// 边框大小
self.showView.layer.borderWidth = 2;
self.showView.layer.borderColor = [[UIColor redColor] CGColor];
*/
// >>> layer复杂属性(锚,位置)
/*
// anchorPoint,position
// 锚点的范围:0-1,锚点和 position 始终重合
// position 是锚点相对于该控件父视图的位置
// 如果不设置 position, 就会让视图向右下偏移
// * 我们在进行试图旋转的时候,才会用到锚点,注意:改锚点时候,一定要改一下 position,按照父视图位置
// 1. 0-1(锚点)
self.showView.layer.anchorPoint = CGPointMake(1, 1);
// 2.
self.showView.layer.position = CGPointMake(100, 100);
[NSTimer scheduledTimerWithTimeInterval:1 target:self selector:@selector(transform) userInfo:nil repeats:YES];
*/
iOS-动画 之 Layer(1)
