title: Getting the Value of a UITextField as keystrokes are entered?
body: <p>Let's say I have the following code:</p>
  
  <pre><code>IBOutlet UITextField* nameTextField;
  IBOutlet UILabel* greetingLabel;
  </code></pre>
  
  <p>I'd like the <code>greetingLabel</code> to read "Hello [nameTextField]" as soon as the user presses any key.</p>
  
  <p>What I need basically is the iPhone equivalent of the Cocoa delegate method <code>controlTextDidChange</code>.</p>
  
  <p>The <code>textField:shouldChangeCharactersInRange:</code> delegate method is called each time a keystroke occurs:</p>
  
  <pre><code>- (BOOL)              textField:(UITextField *)textField
    shouldChangeCharactersInRange:(NSRange)range     
                replacementString:(NSString *)string
  </code></pre>
  
  <p>The string argument returns the character that is pressed. The actual <code>textField</code>'s value (<code>nameTextField.text</code>) remains blank however. </p>
  
  <p>What am I missing here? (I'd like <code>nameTextField</code> to reflect the exact string that the user has entered so far).</p>