iphone - Does the -presentationLayer tell me the in-flight values of an view while it is beeing animated? -
The doctor says:
The presentation layer returns a copy of the layer with all the properties Because they were applied with any active animation, at the beginning of the current transaction.
And somewhere else Apple said, in the presentation layer they have values like they are currently displayed to the user, so when I ask for this layer, then it will tell me how animate Before starting, can you see the thing? Does not mean it is a documentation error?
The document is correct what they are saying that the presentation is based on the initial state of the layer layer, but in it Appropriate animation has been applied, as the progress of the animation, the appropriate value of the presentation matches the current displayed position of the layer. For example, if the layer started at the original coordinate (100,0) and you applied the animation to it (200,0), halfway animation would be the basic coordinator of the presentation lair (150,0) If the same animation was applied to a layer starting with Coordination (0,0), then the original (100,0) of the renderer on halfway through the animation would be.
Comments
Post a Comment