transitionFromView 做了正确的事情,但没有动画。为什么?
代码如下:
[UIView transitionFromView:mapView toView:tableView duration:5.0 options:UIViewAnimationOptionShowHideTransitionViews|UIViewAnimationTransitionFlipFromLeft completion:NULL];
调用此方法后,mapView 被隐藏,tableView 可见,但没有动画!我将持续时间更改为 5 秒,以确保我不会错过动画,但它确实不是动画。上面的行有什么问题吗?还是我需要做一些事情来激活动画?
Here's the code:
[UIView transitionFromView:mapView toView:tableView duration:5.0 options:UIViewAnimationOptionShowHideTransitionViews|UIViewAnimationTransitionFlipFromLeft completion:NULL];
After calling this method the mapView is hidden and the tableView is visible, but there is no animation! I changed the duration to 5 seconds to make sure that I wouldn't miss the animation, but it really isn't animating. Is there anything wrong with the above line or do I need to do something to activate the animation?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您似乎使用了错误的动画选项。你需要使用。
目前您正在使用
It looks like you're using the wrong animation option. You need to be using.
Currently you're using