Wednesday 15 April 2015

iphone - Strange behaviour in UIView Animation -


I am facing a strange behavior in UIView animation. I am developing an iPad app that shows some UIView animations is using.

All animation duration is set to 0.5. All the animations are working fine on the initial application. But after some continuous use, no animation is happening, all UIVView changes are happening quickly, as the duration has not been set in the animation.

I am not sure why this is happening. Is anyone else facing such a problem?

In this way I am using many animations, but after some time no animation is happening, but all the codes inside the animation block are working properly < Pre> [UIView animateWithDuration: 0.5 Animations: ^ {Temple Label Set Font: titleFont.font]; [TempLabel Set Transform: CGAffineTransformMakeRotation ((- 90 * M_PI / 180)); TempLabel.frame = CGRectMake (2,03,330); }];

You feel that the problem every time you apply the change for the first time, control But there is no change, but you have a change, in this case the next change can not work as you want. You have some options to solve this, so I have not tried this code can work

  tempLabel.transform = CGAffineTransformIdentity;   

Put the above code before applying any changes, it will reset any applied changes and your new change will be applied immediately or you

  tempLabel can transform = Cegifine Transcens Concrete (tempLabel.transform, your transform);  

Thanks

/ html>

No comments:

Post a Comment