title: Detect moment when newline starts in UITextView
body: <p>I try to detect when carriage goes at new line in UITextView. I can detect it by comparison total later width with UITextView width:</p>
  
  <pre><code>CGSize size = [textView.text sizeWithAttributes:textView.typingAttributes];
  if(size.width &gt; textView.bounds.size.width)
        NSLog (@"New line");
  </code></pre>
  
  <p>But it dose not work proper way because <code>-sizeWithAttributes:textView</code> returns only width of letters without indentation width. Help please solve this.</p>