[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDuration:0.5];
...
[UIView commitAnimations];
For example, I need to animate the width of the frame conditionally, along with the other other changes that are required. The reason I cannot get the code out of this block is because there is a function call inside the block. How can I exclude some operations from the animation block?
source
share