UIKit Dynamics 和 UIKit Animation 在动画层面最本质的区别是什么?
关于 UIKit Dynamic 的信息并不多。我对此了解不多。我只知道如何使用它。我想这个问题和硬件水平有关?
谢谢。
最佳答案
如果 UIKit 动画是指文档中的内容动画或 View 动画,它会说明它们的具体用法:Animation and Haptics
- UIKit 动态:https://developer.apple.com/documentation/uikit/animation_and_haptics/uikit_dynamics
UIKit Dynamics Apply physics-based animations to your views.
- 观看动画:https://developer.apple.com/documentation/uikit/uiviewpropertyanimator
UIViewPropertyAnimator A class that animates changes to views and allows the dynamic modification of those animations.
如果 UIKit Animation 你的意思是 Core Animations ,也许这个答案可以帮助你更多地理解。总而言之,区别仅在于 API 更方便,因为最后的所有内容都使用核心动画:https://stackoverflow.com/a/38965402/3564632
关于ios - UIKit Dynamics 和 UIKit Animation 有什么区别?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55038732/