【问题标题】:UIScrollview setContentOffset and animationUIScrollview setContentOffset 和动画
【发布时间】:2012-10-20 17:49:02
【问题描述】:

我想setContentOffset 用不同的动画过渡。

现在我使用:

[UIScrollView animateWithDuration:speed animations:^ {
    [scrollView setContentOffset:offset];
}];

你能帮我,我如何在设置偏移期间实现动画。

【问题讨论】:

标签: uiscrollview core-animation


【解决方案1】:

我不太确定,我明白你在寻找什么。但是,如果您正在寻找一个 UIScrollView 类,其 contentOffset 使用非线性计时函数进行动画处理,您可能会喜欢我的 MOScrollView。我使用CADisplayLinkcontentOffset 设置动画。不过,请注意它可能无法完美运行,因为我还没有在生产中使用这个类。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2012-06-13
    • 2011-08-24
    • 1970-01-01
    • 1970-01-01
    • 2018-03-21
    • 1970-01-01
    • 2011-04-25
    相关资源
    最近更新 更多