How does [UIView beginAnimations] work?

前端 未结 2 1424
渐次进展
渐次进展 2021-02-19 19:08

I was wondering how animations work in Cocoa Touch. For example:

[UIView beginAnimations:nil context:nil];
[UIView setAnimationDuration:1.0];

view1.alpha = 1.0         


        
2条回答
  •  爱一瞬间的悲伤
    2021-02-19 19:40

    I believe it is just a wrapper over the old CoreAnimation calls. Look into the CoreGraphics API, you can see that there are multiple keys that you must set into a dictionary, while providing beginning and ending values for these keys.

提交回复
热议问题