I'm using a UITableView with two UITextFields on on each row, to set a passcode and the confirm passcode.
I'd like to use the section footer to show if the passcodes match or if too short etc.
I'm using..
[[self passcodeTableView]reloadSections:[NSIndexSet indexSetWithIndex:0]
withRowAnimation:UITableViewRowAnimationFade];
To refresh the footer text, along with an NSString I set elsewhere.
However when I call reloadSections it forces the UITextFields to be re-added in cellForRowAtIndexPath.
I thought if (cell == nil) would stop the cells from being redrawn, but obviously not.
What am I doing wrong here ?
Create a variable to store the text and be accessible within your object. Add this to your YourClass.m:
Add this method to your class:
Then, when you want to change the text, just update the footerLabel: