【问题标题】:iOS: Performance of UIView animations vs CABasic/CAKeyframe animationsiOS:UIView 动画与 CABasic/CAKeyframe 动画的性能
【发布时间】:2010-10-18 20:15:17
【问题描述】:

UIView 动画与 CA 动画块的性能有区别吗?我知道它们都是 Core Animation 的接口,但我希望在每个动画中压缩最大的性能和资源。谢谢。

【问题讨论】:

    标签: ios core-animation calayer uiviewanimation caanimation


    【解决方案1】:

    您必须自己对它们进行基准测试才能确定,但​​我的猜测是会有没有差异。他们都在幕后使用相同的代码,并且 UIView 和 CALayers 的性能几乎相同。通过确保正确处理 alpha,您将获得更多性能。让一切可能变得不透明。通过合成计算的内容越少,您的动画响应就越快。

    最好的问候。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2013-05-12
      • 2019-09-01
      • 2015-01-28
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多