CALayer frame.size not equal to bounds.size
I happened to something strange to me on CALayer.And finally found the CALayer's frame.size not equal to its bounds.size, which I couldn't understand.I know frame is in the super's coordinate system and bounds is its own coordinate,and the usual case is frame.origin is not equal to bounds.origin but frame.size is equal to bounds.size. That is because you applied a transform, as apple says on the documentation for the frame property. Warning If the transform property is not the identity transform, the value of this property is undefined and therefore should be ignored. ... Changes to this