iPhone:如何在没有淡入淡出效果的情况下执行 kCATransitionMoveIn
我正在对类型为 kCATransitionMoveIn 、子类型为 kCATransitionFromRight 的视图进行转换。
这对于新视图淡入效果很好,因为它来自右视图和旧视图淡出。褪色可以避免吗?我希望传入的视图的 alpha 值为 1,并且传出的视图能够清晰可见,直到它被完全替换。这可能吗?怎么办?
I am doing a transition of views with type as kCATransitionMoveIn and subtype as kCATransitionFromRight.
This works fine with the new view fading in as it comes from right and old view fading out. Can the fading be avoided ? I would like to have the view coming in with the alpha of 1, and the outgoing view to be seen clearly until it is until it is fully replaced. Is this possible & how to do this ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是的,这是可能的,您可以通过使用 [UIView beginAnimation] 方法手动移动它们来完成,只需链接几个动画即可开始
yes, its possible, u can do it by moving them manually , using the [UIView beginAnimation] method, just chain a couple of animation and u're good to go