title: How to change keyboard return type when text appears in the textfield
body: <p>I have a text field whose keyboard return key is <code>default</code>.
  But I want it to be <code>UIReturnKeySend</code> when any text appears on the textfield.
  I have tried it as follows.</p>
  
  <pre><code>- (BOOL)textField:(UITextField *)textFieldshouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string
    {
        textField.returnKeyType = UIReturnKeySend;
        return YES;
    }
  </code></pre>
  
  <p>I know I will have to check for some conditions under this method, but for now I want it to at least change the <code>returnKeyType</code> which is not working.</p>
  
  <p>As it happens in <code>autoEnabling</code> return key (i.e return key becomes active when we enter a text.) I want my return key to change from <code>default</code> to <code>send</code> whenever text appears.</p>