title: UITextField in UITableViewCell and validation in modal view
body: <p>I am using the approach described in <a href="https://stackoverflow.com/questions/4375442/accessing-uitextfield-in-a-custom-uitableviewcell">this stackoverflow posting</a> to retrieve values from a textfield. My problem is that the tableview is presented modally and I have a <code>save</code> button that validates the input and stores it.</p>
  
  <p>The problem is that the <code>textFieldDidEndEditing</code> method is <strong>not</strong> called when the user clicks an <code>UIBarButtonItem</code> (= the save button, which closes the modal view).</p>
  
  <p>In this event (when the user wants to save the input) I would like to validate it. But the values are stored in properties in the <code>textFieldDidEndEditing</code>. Due to the fact that this method is not called, I cannot validate the input values correctly.</p>
  
  <p>Does anyone have a hint or solution on this?</p>
  
  <p>Thanks in advance!</p>