title: Detect new-line character for auto enter new line text on UITextView on iOS
body: <p>When typing on UITextView on iOS app, if text is beyond the width of UITextView, UITextView will automatically enter new line and continue typing, but the problem is when get the text out, it's still just one-line text. </p>
  
  <p><img src="https://i.stack.imgur.com/8KDuA.png" alt="The &#39;M&#39; character is automatically broken into new line after &#39;O&#39; character"></p>
  
  <p>But when I get the text from this textview</p>
  
  <pre><code>NSString* newtext = textview.text;
  </code></pre>
  
  <p>The value of newtext will be "AAAAAAAAAAAAAAAAAAAAAAAAAAAAOMMM" (all is one-line) but I'm expected it will be "AAAAAAAAAAAAAAAAAAAAAAAAAAAAO\nMMM" (notice the '\n' character notify the new line)</p>
  
  <p>Is there any way to do that</p>