Saving UITextField content when scrolling
Hello everyone, this has become a cliche comment. I have been reading posts on this forum for some time and I have to tell you this is a great knowledge center and all the people who help newbies like me should be canonized. it is a very unrewarding activity. I just join because I am totally stuck at my work and I need some help.
I have a custom UITableViewController with some custom cells that hold some UITextFields so the user should enter some values on them and then tap on the done button up in the navigation bar to save all the information. The problem is, if the user scrolls down and then tap on the done button the information on the text fields that is out of sight doesn't get saved. I understand the why, the UITableViewCell's that are out of sight get unallocated, so when the user saves there is basically nothing on them although if the user scroll back the information remains on the fields.
So my question is how can I retrieve the content of the text fields for saving it?
I already tried with the UITextFieldDelegate protocol but the problem is that if the text field shows a correction and the user accept the correction it doesn't get saved it only saves the badly spelled word.
|