UIView 动画和随着参数动画而改变值
当我使用 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论