有没有办法找出时空中当前影响速度的因素是什么?

发布于 2024-07-29 01:38:29 字数 230 浏览 3 评论 0原文

时空问题:您创建了一个大的视图层次结构,并为每一层指定了不同的速度值。 现在所有的时空都乱了。 在层次结构的底部,你不知道自己有什么样的时间扭曲。 -10%? -90%? +50%?

UIKit 在制作动画时必须以某种方式计算层次结构中的速度。 所以我想知道是否有一种方法可以获取这个计算出的速度值?

当然,我可以尝试遍历层次结构并将周围的所有速度相乘。 但也许有更简单的方法。

Timespace problem: You make a big hierarchy of views, and give every layer a different speed value. Now all the Timespaces are messed up. At the bottom of the hierarchy you don't know what kind of time distortion you have. -10%? -90%? +50%?

UIKit somehow has to calculate the speed in the hierarchy when animating. So I wonder if there's a method to grab this calculated speed value?

Sure, I could try to walk up through the hierarchy and multiplicate all the speed's that are around. But maybe there's an easier way.

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

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

发布评论

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