UIView 动画和随着参数动画而改变值

发布于 2024-10-04 01:53:21 字数 185 浏览 0 评论 0原文

当我使用 UIView 动画方法(例如 UIView beginAnimations)在一段时间内渐变某个值时,它是否实际上渐变该值本身,以便如果我获得该值,我会看到它随时间变化,或者是否将该值设置为最终值然后简单地直观地显示它的斜坡?

我看到的是,该值似乎立即设置为其最终值,并尝试在动画持续时间内读取该值,返回最终值,而不是其线性插值。

When I use the UIView animation methods such as UIView beginAnimations to ramp a value over a duration, does it actually ramp the value itself so that if I get the value I see it changing over time, or does it set the value to the final value and then simply visually display it ramping?

What I am seeing is that the value appears to get set immediately to its final value and attempts to read the value over the duration of the animation return the final value and not the linear interpolation of it.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文