2015-03-05 switch in swift swift ios ###swift 123456789101112var testVar = 1var result = 0switch(testVar) {case 0: fallthroughcase 1: result = 1default: result = 3} ###objc 12345678910111213int testVar = 1;int result = 0;switch(testVar) {case 0:case 1: result = 1;break;default: result = 3;break;} < swift lazy initialization notification center action >