草庐IT

PushNoAnimationSegue

全部标签

iOS 禁用推送 segue 动画

我有一个包含各种segue的Storyboard,用于在NavigationController中推送ViewController。在Storyboard中我禁用了动画:但是推送仍然是动画的。为什么? 最佳答案 该动画是默认行为。您需要像这样创建自定义UIStoryBoardSegue:PushNoAnimationSegue.h是:#import@interfacePushNoAnimationSegue:UIStoryboardSegue@endPushNoAnimationSegue.m是:#import"PushNoAnim