UINavigationController - 使用后退按钮弹出时如何不设置动画?
这应该很简单,但我就是无法弄清楚这一点:
单击 UINavigationController 中的后退按钮时的默认行为是当前视图弹出动画。如何覆盖默认行为以使此转换不产生动画效果?
This ought to be simple but I just can't figure this one out:
The default behaviour when clicking the backbutton in a UINavigationController is that the current view gets popped with an animation. How can I override the default behaviour so that this transition is not animated?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
[self.navigationController popToViewController:viewController 动画:NO];
http://developer.apple.com/library/ios/documentation/uikit/reference/UINavigationController_Class/Reference/Reference.html#//apple_ref/occ/instm/UINavigationController/popToViewController:animated:
[self.navigationController popToViewController:viewController animated:NO];
http://developer.apple.com/library/ios/documentation/uikit/reference/UINavigationController_Class/Reference/Reference.html#//apple_ref/occ/instm/UINavigationController/popToViewController:animated: