Skip to content

Instantly share code, notes, and snippets.

@amirhanov
Last active May 8, 2019 10:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amirhanov/09b8ab6a0d91c379ee1f9dfdbd4b2ca5 to your computer and use it in GitHub Desktop.
Save amirhanov/09b8ab6a0d91c379ee1f9dfdbd4b2ca5 to your computer and use it in GitHub Desktop.
Как перейти из одного ViewController на другой ViewController с помощью Storyboard ID.
let storyBoard: UIStoryboard = UIStoryboard(name: "Main VC", bundle: nil)
let newViewController = storyBoard.instantiateViewController(withIdentifier: "Your Storyboard ID") as! newViewController
self.present(newViewController, animated: true, completion: nil)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment