I was wondering how animations work in Cocoa Touch. For example:
[UIView beginAnimations:nil context:nil];
[UIView setAnimationDuration:1.0];
view1.alpha = 1.0;
view2.frame.origin.x += 100;
[UIView commitAnimations];
How does UIView
tracks the changes to the properties of the two views?
I suspect that KVO is used, but does it really observe the changes to every views between the beginAnimations
and commitAnimations
calls?
Any insight would be appreciated!