You should wrap each switch statement with {} braces. For example:
switch (someInt) {
case 0:
{
NSLog(@"Case 0");
}
break;
case 1:
{
NSLog(@"Case 1");
}
break;
}
This has been answered already here by the way – When converting a project to use ARC what does “switch case is in protected scope” mean?