title: delete last character of string with self-made keyboard
body: <p>i have a uitextfield (_nameField) and buttons a-z, space, minus, delete and ok.</p>
  
  <p>the buttons a-z, space, minus have the following same ibaction:</p>
  
  <pre><code>NSString *text1 = @"";
  
  - (IBAction)keyboardButtons:(id)sender {
  
  
  if (_nameField.text.length &lt;=14) {
  
      if (_nameField.isEditing) {
          text1 = [text1 stringByAppendingString:[sender currentTitle]];
          [_nameField setText:text1];
      }
  }
  
  }
  </code></pre>
  
  <p>works perfectly.</p>
  
  <p>the delete button have this ibaction:</p>
  
  <pre><code>- (IBAction)clearButton:(id)sender {
  
  if (_nameField.isEditing) {
      text1 = @"";
      [_nameField setText:text1];
  }
  
  
  }
  </code></pre>
  
  <p>ok, thats pretty simple, it sets the text of my string to @"". but i want to delete just the last character. how can i do that?</p>