ios - 执行 UIKit 动画 block ,例如 animateWithDuration :animations:completion use CADisplaylink?

标签 ios uikit core-animation cadisplaylink

我希望这是一个直截了当的问题。我一直在到处寻找这个问题的答案,但似乎找不到。有人知道吗? UIKit 动画 block 是否使用显示链接运行?

最佳答案

不,他们没有。

基于 block 的 UIView 动画 API 通过 actionForLayer:forKey: 委托(delegate)方法为图层提供 CAAnimation( View 始终是图层委托(delegate))。


我之前写过一篇关于 UIKit 动画如何在 objc.io #12 中工作的博文(大约前 20% 的帖子讨论了 View 与其层之间的这种交互)。

关于ios - 执行 UIKit 动画 block ,例如 animateWithDuration :animations:completion use CADisplaylink?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25486585/

相关文章:

ios - 基于 App Store Connect 的 TestFlight 卡在 'Ready to Submit'

ios - -[UIApplication setStatusBarHidden :withAnimation] does not fire KVO notifications for @"statusBarHidden" key

iphone - 需要有关 iPhone 上的动画的帮助

iphone - 无限循环动画

ios - 从 CABasicAnimation 转换代码

ios - 数据 : <fault> issue in another function after fetching data from core data

ios - UIScrollView 页面内容无法正常工作 - iOS

ios - Swift:在每天的设定时间之间创建重复的本地通知

iphone - 如何在我的 iPhone 应用程序中为这个自定义 View 过渡设置动画?

ios - 如何更改 iPhone 应用程序中状态栏的颜色?