UIView displays improperly after its layer has been animated?

Group. FillMode = kCAFillModeForwards; group. RemovedOnCompletion = NO What you are telling core animation with those lines is that you want it to continue to display in the forward (final) state of the animation.

Meanwhile, you didn't actually set the transform on the layer to have the properties you used for the animation. This would make things appear to be out of sync Now, the issue you're going to run into is that removing those lines will cause your transforms to revert back to the starting state when the animation has completed. What you need to do is actually set the transforms on the layer in order for them to hold their position when the animation completes Another option is to leave the two lines in and then actually explicitly remove the animation from the layer instead of setting the layer frame as you mentioned when you are ready to revert back to the original state.

You do this with: theView. Layer removeAnimationForKey:@"MyAnimation" The -removedOnCompletion property told the layer not to remove the animation when it finished. Now you can explicitly remove it and it should revert back HTH.

Group. FillMode = kCAFillModeForwards; group. RemovedOnCompletion = NO; What you are telling core animation with those lines is that you want it to continue to display in the forward (final) state of the animation.

Meanwhile, you didn't actually set the transform on the layer to have the properties you used for the animation. This would make things appear to be out of sync. Now, the issue you're going to run into is that removing those lines will cause your transforms to revert back to the starting state when the animation has completed.

What you need to do is actually set the transforms on the layer in order for them to hold their position when the animation completes. Another option is to leave the two lines in and then actually explicitly remove the animation from the layer instead of setting the layer frame as you mentioned when you are ready to revert back to the original state. You do this with: theView.

Layer removeAnimationForKey:@"MyAnimation"; The -removedOnCompletion property told the layer not to remove the animation when it finished. Now you can explicitly remove it and it should revert back.HTH.

Wow, that removeAnimationForKey: was exactly what was missing in my code. Thanks, it works great now! – KPM Jun 23 '10 at 10:53.

Meanwhile, you didn't actually set the transform on the layer to have the properties you used for the animation. This would make things appear to be out of sync. Now, the issue you're going to run into is that removing those lines will cause your transforms to revert back to the starting state when the animation has completed.

What you need to do is actually set the transforms on the layer in order for them to hold their position when the animation completes. Another option is to leave the two lines in and then actually explicitly remove the animation from the layer instead of setting the layer frame as you mentioned when you are ready to revert back to the original state. The -removedOnCompletion property told the layer not to remove the animation when it finished.

Now you can explicitly remove it and it should revert back.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions