the relationship between Calayer and UIView
UIView itself is not visible, its internal Calayer only has the display function
changing the properties of the Calayer is changing the appearance of the uiview (such as fillets, shadows)
Common Properties of the calayer (such as position, Anchor Point)
Common Properties of calayer (such as borders, rounded corners)
Uicolor and UIImage must be turned into cgcolorref, cgimageref that can cross the platform
The important difference between UIView and Calayer is : Can I interact with the user
The anchor Point is the point at the position coordinates of the parent layer .
when the anchor point of the red layer is (0,0)
When the anchor point of the red layer is (0.5,0)
When the anchor point of the red layer is (1,0.5)
The case when the red layer's anchor point is (0.5,0.5) (default value)
manually created Calayer have an implicit animation that, as long as the value is changed, produces an animation
If you don't want to see an implicit animation, you can turn it off by transaction
ios_40_ Core Animation and drawing