How to perform unwind segue without animation?

二次信任 提交于 2019-12-10 22:41:19

问题


How do i perform unwind segue without any animation. I tried setting up a unwind segue and in the storyboard on the right side unchecking "Animates" but its still animated(it slides down), how can i fix that?


回答1:


Using Xcode 7, running on an iOS Simulator, this works as expected. Simply unchecking "Animates" on the unwind segue in Interface Builder in the Attributes Inspector will cause the modally presented view controller(s) to instantly disappear instead of animate down off screen.

Do note that this behavior is new in iOS 9. For iOS 8, it will still animate the unwind dismissal. Thanks to Dave G for noting this.

I've attached a sample project that demonstrates how this is working, which you can compare to your project to determine where the difference lies.

Sample Project



来源:https://stackoverflow.com/questions/34483891/how-to-perform-unwind-segue-without-animation

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!