【问题标题】:Animate Transition in objective c目标 c 中的动画过渡
【发布时间】:2017-10-26 05:13:45
【问题描述】:

如何给 NSView 赋予动画? ios中用于动画的函数如下。

[UIView animateWithDuration: duration
                                      delay:0.0
                                    options:curve
                                 animations:updateClocks
                                 completion:nil];

我想在 mac os 中使用相同的功能来制作动画。那么如何在给定参数的情况下为 mac os x 使用这个函数呢?

【问题讨论】:

    标签: cocoa animation nsview nsanimation


    【解决方案1】:

    这是因为 animateWithDuration 仅适用于 iOS 和 tVOS。您可以在 Apple 文档中看到它:

    https://developer.apple.com/documentation/uikit/uiview/1622515-animatewithduration

    你需要在 MacOSX 中找到对应的。

    【讨论】:

    猜你喜欢
    • 2018-07-15
    • 2010-10-31
    • 1970-01-01
    • 2016-02-26
    • 2016-11-01
    • 1970-01-01
    • 2016-03-16
    • 2018-04-20
    • 1970-01-01
    相关资源
    最近更新 更多