catransformlayer

On iOS, why does setting a layer's sublayerTransform turn itself to act like CATranformLayer?

别来无恙 提交于 2019-12-20 10:47:20
问题 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 .

CATransformLayer - Performance issues when setting frame of sublayers

无人久伴 提交于 2019-12-10 10:35:54
问题 I have a CATransformLayer which has a couple of sublayers (CAShapeLayers). I'm setting the frames of my CAShapeLayers to have a size of (512, 512). Their content is (slightly) smaller than this. When rotating the whole scene in 3D it's slowing down the frame rate - but it renders everything correctly. If I do not set the frame property of the CAShapeLayers, then it's rotating the scene in 3D super fast but there are rendering mistakes. These are: Layers disappear at certain angles Wrong z

how to animation a label on circular path in iOS?

烂漫一生 提交于 2019-12-09 07:54:02
问题 I am stuck at animating the uiLabel in my view. Actually I just want to animate my label/Text on a circular path. I have searched a lot over internet but couldn't find any good tutorial or example that is doing something like my problem. I have done CAShapeLayer (circle) increasing from 0 to its maximum value.... Similarly I want that my label/text start moving from initial point in circular path and come back to its initial point after completing one circle. Hope I have explained my problem

CATransformLayer - Performance issues when setting frame of sublayers

血红的双手。 提交于 2019-12-06 09:22:06
I have a CATransformLayer which has a couple of sublayers (CAShapeLayers). I'm setting the frames of my CAShapeLayers to have a size of (512, 512). Their content is (slightly) smaller than this. When rotating the whole scene in 3D it's slowing down the frame rate - but it renders everything correctly. If I do not set the frame property of the CAShapeLayers, then it's rotating the scene in 3D super fast but there are rendering mistakes. These are: Layers disappear at certain angles Wrong z-ordering (some layers get rendered on top of each other that should be rendered the other way around) What

how to animation a label on circular path in iOS?

筅森魡賤 提交于 2019-12-03 09:07:05
I am stuck at animating the uiLabel in my view. Actually I just want to animate my label/Text on a circular path. I have searched a lot over internet but couldn't find any good tutorial or example that is doing something like my problem. I have done CAShapeLayer (circle) increasing from 0 to its maximum value.... Similarly I want that my label/text start moving from initial point in circular path and come back to its initial point after completing one circle. Hope I have explained my problem quite precisely ... still if there is anything missing or non-understandable. please ask me. Thanks in

On iOS, why does setting a layer's sublayerTransform turn itself to act like CATranformLayer?

◇◆丶佛笑我妖孽 提交于 2019-12-03 00:31:23
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 . If the zPosition of layer2 is changed from 88 to 188 , we can see that the layer moves accordingly.