Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there a way to make the case statements in a switch be folded?

I am using the Xcode 4.5.2

share|improve this question
Development related questions including Xcode should be on StackOverflow – Mark Dec 14 '12 at 21:30
up vote 1 down vote accepted

Wrap your cases with { }. Like this:

enter image description here

share|improve this answer
Thanks bogdanscr, but is there a way to do it without the curly braces? – khchehab Dec 14 '12 at 20:43

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.