title: How to split a string in Objective-C without breaking the code
body: <p>Xcode throws all sorts of errors when I insert a line break into a string. E.g., this fails:</p>
  
  <pre><code>if (newMaximumNumberOfSides &gt; 12) {
      NSLog(@"Invalid maximum number of sides: %i is greater than 
              the maximum of 12 allowed.", newMaximumNumberOfSides);
  }
  </code></pre>
  
  <p>But this works:</p>
  
  <pre><code>if (newMaximumNumberOfSides &gt; 12) {
      NSLog(@"Invalid maximum number of sides: %i is greater than the maximum of 12 allowed.", 
            newMaximumNumberOfSides);
  }
  </code></pre>
  
  <p>I'd prefer the former because it's cleaner to look at (shorter lines), but the code breaks. What's the best way to deal with this? (Subquestion: is this referenced in any of the syntax guides? I searched all my books for "line break" to no effect.)</p>