开发者

Objective C - Animation Blocks, multiparameters

开发者 https://www.devze.com 2022-12-17 07:12 出处:网络
I have a question... how is programmatically reached the Animation blocks? [UIView beginAnimations:@\"repositionAnimation\" context:nil];

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

精彩评论

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