旋转 - 使用 willAnimateSecondHalfOfRotationFromInterfaceOrientation 减慢旋转速度
大家,在使用 "willAnimateSecondHalfOfRotationFromInterfaceOrientation:" 方法时,如何实际减慢方向旋转速度?
我目前有这个:
-(void) willAnimateSecondHalfOfRotationFromInterfaceOrientation:(UIInterfaceOrientation)fromInterfaceOrientation
duration:(NSTimeInterval)duration {
[self positionViews];
}
而且我知道当旋转确实发生时,这个“willAnimate2ndHalf...”方法会被自动调用 - 那么我实际上在哪里可以更改其 DURATION 值?
people, how do you actually slow down the orientation-rotation when using the "willAnimateSecondHalfOfRotationFromInterfaceOrientation:" method?
I currently have this:
-(void) willAnimateSecondHalfOfRotationFromInterfaceOrientation:(UIInterfaceOrientation)fromInterfaceOrientation
duration:(NSTimeInterval)duration {
[self positionViews];
}
And I understand that this "willAnimate2ndHalf..." method gets called automatically when the rotation does indeed happen - well where do I actually get to change its DURATION value?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您想更改应用程序轮换的总体时间,则无法完成。 willAnimateSecondHalfOfRotationFromInterfaceOrientation 用于添加自定义代码,例如设置自定义坐标、属性等。
If you want to change the overall timing of he app's rotation, it can't be done. willAnimateSecondHalfOfRotationFromInterfaceOrientation is meant for adding custom code, like setting custom coordinates, properties, things like that.