I have this switch statement in my code:
switch(buttonIndex){ case 0: [actionSheet dismissWithClickedButtonIndex:buttonIndex animated:YES];
Well, if I put the variable declaration before the switch statement it works fine. I guess variable declarations aren't 'expressions' in Objective C?