title: UITextField highlight all text
body: <p>I have searched through stackoverflow for a similar problem and found recommended solutions that worked for others but none of them worked for me so I'm beginning to suspect that it's something I haven't done properly.</p>
  
  <p>It's very simple. All I want to have is that when the user taps on the uitextfield, the entire text within uitextfield get selected. The user can then proceed to delete it all, tap once and append from that point onwards or start typing to overwrite everything.</p>
  
  <p>I have an action from the uitextfield and here's the snippet.</p>
  
  <pre><code>- (IBAction)didBeginEditDescription:(id)sender
  {
      NSLog(@"Description began edit.");
  
      [self.txtfield selectall:self];
  }
  </code></pre>
  
  <p>I know the method is called (evident by the NSLog). However, nothing happens and the cursor remains to be at the last position of the text. I have UITextFieldDelegate already so not sure what else I should look at?</p>
  
  <p>FYI, this is being done to Xcode 5.0 and trying to develop for iOS 7.</p>
  
  <p>Is there anything obvious that I'm missing?</p>