UITextField in UITableViewCell and validation in modal view
===

I am using the approach described in [this stackoverflow posting][1] to retrieve values from a textfield. My problem is that the tableview is presented modally and I have a `save` button that validates the input and stores it.

The problem is that the `textFieldDidEndEditing` method is **not** called when the user clicks an `UIBarButtonItem` (= the save button, which closes the modal view).

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 `textFieldDidEndEditing`. Due to the fact that this method is not called, I cannot validate the input values correctly.

Does anyone have a hint or solution on this?

Thanks in advance!


  [1]: http://stackoverflow.com/questions/4375442/accessing-uitextfield-in-a-custom-uitableviewcell