Created
July 7, 2014 23:48
-
-
Save frank-lsf/36cf4dc65333b51be34a to your computer and use it in GitHub Desktop.
Switch in Obj C
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
switch (x) { | |
case 1: | |
//... | |
case 2: | |
//... | |
default: // catches everything else | |
//... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment