Created
June 7, 2014 19:07
-
-
Save MartinJNash/3ce49f4ae48190bc1fe1 to your computer and use it in GitHub Desktop.
Swift prepare for segue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
override func prepareForSegue(segue: UIStoryboardSegue!, sender: AnyObject!) | |
{ | |
if let vc = segue.destinationViewController as? CreateNoteViewController { | |
println("Create Note VC") | |
} | |
if let vc = segue.destinationViewController as? SingleNoteViewController { | |
println("Show single note") | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment