On iOS, why does setting a layer's sublayerTransform turn itself to act like CATranformLayer?
问题 It is known that the zPosition of the layers only determines which layer cover up which layer. Whether it is a zPosition of 10 or 1000 won't affect its position. That is, unless if we use CATransformLayer to contain those layers, then the zPosition of those layers will affect the layers' position. However, the following code running in iOS 5.1.1 does make the zPosition alter the position of the layers... you can try it in a new Single View App, and add the following code to ViewController.m .