Monday 6 May 2013

Handling unrelated animation issues

Hi all,

After setting the animations for a view,you need to commit the animations.

     [UIView beginAnimations:nil context:NULL];
     [UIView setAnimationDuration:0.3f];
     [UIView setAnimationDelegate:self];

     [UIView commitAnimations];

Otherwise those animations will be applied to all the next views so that the entire project will be effected by unrelated and unhandled animations.

No comments:

Post a Comment