Switch case is in protected scope
http://stackoverflow.com/questions/8482678/case-in-protected-switch
You should wrap each switch statement with {}
braces. For example:
switch (someInt) {
case 0:
{
NSLog(@"Case 0");
}
break;
case 1:
{
NSLog(@"Case 1");
}
break;
}