开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜