有没有办法找出时空中当前影响速度的因素是什么?
时空问题:您创建了一个大的视图层次结构,并为每一层指定了不同的速度值。 现在所有的时空都乱了。 在层次结构的底部,你不知道自己有什么样的时间扭曲。 -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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论