Objective C - Animation Blocks, multiparameters
I have a question... how is programmatically reached the Animation blocks?
[UIView beginAnimations:@"repositionAnimation" context:nil];
// ---------------------------------开发者_StackOverflow--------------------------------------------
[view setFrame:viewRect];
[view setAlpha:0];
...
...
// -----------------------------------------------------------------------------
[UIView commitAnimations];
How the messages are stored and processed on commitAnimations ???
I just guess that the begin function invokes some kind of holder for messages, storing the messages somehow and process them in loop ?
is there a way to work with a messages some kind like in argument lists???
You are using the animation proxy when you call [UIView beginAnimations:context:]. If you want to manage animations explicitly, use Core Animation. You can monitor progress of a view's layer by periodically (using a timer) checking the layer's presentationLayer.
精彩评论