ios there is a way to combined swtich cases?
I was wondering if there is a way to combined switch cases for example:
switch (value)
{
case 0,1,2:
nslog (@"0,1,2 cases");
break
case 3:
nslog (@"3 cases");
break;
default:
NSLog (@"anything else");
break;
}
I'll really appreciate your help
No comments:
Post a Comment