title: How do I remove new line characters from a string?
body: <p>I need to strip away any new line characters from a string. I tried the stringByReplacingOccurencesOfString method below. What is the correct method to do this in Objective C?</p>
  
  <pre><code>[textLine stringByReplacingOccurrencesOfString:@"\n" withString:@""];
  </code></pre>