Skip to content

Instantly share code, notes, and snippets.

@susieyy susieyy/prepare.swift Secret
Created Jan 14, 2017

What would you like to do?
override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
if segue.identifier == "SecondViewIdentifier" {
let secondViewController = segue.destination as! SecondViewController
// titleNameが初期化されていないため以下行によるviewDidLoadの時点でクラッシュ!
secondViewController.titleName = "This is a second view!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.