title: Get exact cursor position from UITextView
body: <p>I have a UITextView in which I need to insert the value at certain positions. For the purpose I need to get the cursor position. After a bit of browsing I came up with the following property to show the cursor position:</p>
  
  <pre><code>NSLog(@"%@", textView.selectedTextRange.start);
  </code></pre>
  
  <p>I used <code>NSLog</code> to find out in what format I get the output of the above expression. I got the output like the one below:</p>
  
  <pre><code>&lt;UITextPosition: 0x7472ed0, 4, {"6554"}, {"333"}&gt;
  </code></pre>
  
  <p>From the above set, all I need to get is just the value <code>4</code>. I couldn't see any method that can give me the value 4(which is the exact cursor position that I need). Is there any way that I can get the value?</p>