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> 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 Put the above code before applying any changes, it will reset any applied changes and your new change will be applied immediately or you Thanks / html> [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); }];
tempLabel.transform = CGAffineTransformIdentity;
tempLabel can transform = Cegifine Transcens Concrete (tempLabel.transform, your transform);
No comments:
Post a Comment