Segue from one storyboard to a different storyboard? Segue from one storyboard to a different storyboard? xcode xcode

Segue from one storyboard to a different storyboard?


With Xcode 7 you can pick Storyboard References

enter image description here

and set the destination storyboard and controller

enter image description here


In Swift (iOS 8.1) this is pretty easy:

  var storyboard: UIStoryboard = UIStoryboard(name: "Another", bundle: nil)  var vc = storyboard.instantiateViewControllerWithIdentifier("NextViewController") as AnotherViewController  self.showViewController(vc, sender: self)

Update for Swift 3:

let storyboard: UIStoryboard = UIStoryboard(name: "Another", bundle: nil)let vc = storyboard.instantiateViewController(withIdentifier: "NextViewController") as! AnotherViewControllerself.show(vc, sender: self)