Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disabling segue animation

I want to Show (e.g. push) segues in my storyboard, to connect my viewcontrollers and my navigation controller. Then the navigation bars on the viewcontrollers will show correctly. For example: With show detail or present modaly, the navigation bar will disappear

But I don't want segue animation. Xcode is giving the warning like : "Disabling segue animation is not available prior to iOS 9.0"

And I wants deployment target of iOS 7.0 or 8.0

How can I solve this?

Thanks in advance.

like image 337
codeDude Avatar asked Oct 15 '15 11:10

codeDude


2 Answers

You can disable animations before performing the segue and after enable it again.

UIView.setAnimationsEnabled(false)
self.performSegueWithIdentifier("next", sender: nil)
UIView.setAnimationsEnabled(true)

This will perform the segue without the animation.

like image 61
Arbitur Avatar answered Oct 21 '22 06:10

Arbitur


Click on segue arrow in Main.Storyboard and then:

enter image description here

Check out Animates

like image 22
Orkhan Alizade Avatar answered Oct 21 '22 07:10

Orkhan Alizade