title: UITextField calls textFieldDidEndEditing when cleared but `text` property has data
body: <p>Did anyone notice that <code>UITextField</code> calls <code>textFieldDidEndEditing</code> after clear button is pressed but <code>text</code> property still has old data ?</p>
  
  <p>I'm not sure what code-sample I can provide here. I'm using storyboard if that matters.</p>
  
  <p>For now I have to rely on taking data from all edit controls on main form's "Submit" button. But ideally I'd prefer to collect data in <code>textFieldDidEndEditing</code> handler.</p>
  
  <p>Are there any better workarounds ?</p>
  
  <p>I'm on iOS 6.</p>
  
  <p><strong>Update</strong>: Basically here is what I have on the form</p>
  
  <ul>
  <li><code>UITextField</code> and <code>UiButton</code> are on the form.</li>
  <li>Keyboard dimissed by calling <code>resignFirstResponder</code> in handler of <code>UITapGestureRecognizer</code></li>
  </ul>
  
  <p>Steps to reproduce the issue:</p>
  
  <ul>
  <li>Click on edit control. Enter some text.</li>
  <li>Tap outside of text control.</li>
  <li><code>textFieldDidEndEditing</code> is called. Property <code>.text</code> has value I entered. All good.</li>
  <li>Click on edit control again.</li>
  <li>Click on clear button.</li>
  <li><code>textFieldDidEndEditing</code> is called again. But property <code>.text</code> still has value I just deleted !</li>
  <li>Now as you see cursor blinking inside UITextField tap on Button on the form.</li>
  <li>Keyboard is dismissed by <code>textFieldDidEndEditing</code> was never called.</li>
  </ul>
  
  <p>I'll upload sample project on GitHub tomorrow.</p>