I have several UITextField in UITableView. I have assigned different tags to those fields but the problem that i am facing is accessing those UITextField from several other functions.
How to access them?
Here is my code:-
UITextField *textField = (UITextField *)[self.view viewWithTag:0];
Can anyone help?
I have same feature in one of my apps and I used below code to accomplish that and I never had this kind of problem.
First of all you need to store all your textField value temporary in Array. Make array like this.
Then Give all textField tag = indexPath.row;
After that You need to replace textField value in below two methods.
At Last You need to set that value in cellForRowAtIndexPath datasource Method. So that whenever user scroll tableview it set previous value from temp array. Like this.