I am using normal storyboarding and push segues in xcode, but I want to have segues that just appear the next view, not slide the next view (as in when you use a tab bar and the next view just appears).
Is there a nice simple way to have normal push segues just "appear" and not "slide", without needing to add custom segues?
Everything is working completely fine, I just want to remove that slide animation between the views.
Ian's answer works great!
Here's a Swift version of the Segue, if anyone needs:
PushNoAnimationSegue.swift
I'm using Visual Studio w/ Xamarin, and the designer doesn't provide the "Animates" checkmark in dtochetto's answer.
Note that the XCode designer will apply the following attribute to the segue element in the .storyboard file: animates="NO"
I manually edited the .storyboard file and added animates="NO" to the segue element(s), and it worked for me.
Example:
You can uncheck "Animates" in Interface Builder for iOS 9
Just set
animated
false onUINavigationController.pushViewController
in SwiftI was able to do this by creating a custom segue (based on this link).
PushNoAnimationSegue
(or whatever you decided to call it).Swift 4
Objective C
PushNoAnimationSegue.h
PushNoAnimationSegue.m
I have now managed to do this using the following code:
Hope this helps someone else!