问题
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