Skip to content

Instantly share code, notes, and snippets.

Created May 18, 2017 06:29
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save anonymous/1177e97a92e8df86a60aa1f579cf221b to your computer and use it in GitHub Desktop.
the description for this gist
override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
switch segue.identifier! {
case "segue_1":
let vc = segue.destination as! MyViewController
vc.setupWith(data: data)
case "segue_2":
...
...
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment