I have a textField inside a tableViewCell. I recently noticed that if I enter a value in a text box and then scroll the cell from the screen, the value in the text box will disappear.
I have a defense against this. If there is no current UIKeyboard, the tableView cannot scroll far enough to redraw the cell. However, some users do not use the key made on the keyboard to force the keyboard to leave, but instead scroll up to break the program.
Is there a way to immediately save the textField string for a variable or save the scroll of the View table or make the keyboard disappear if the user tries to scroll the View table?
I donβt have a NIB file for this view, it is a software tableViewController, so I canβt do anything in Interface Builder with invisible custom buttons, as suggested in other StackOverflow questions.
iphone uitextfield uitableview
Justin
source share