I have a UITextField which is populated with a value selected from a pre-defined UIPickerView. The selection of the value from the picker is working fine and the selected value is assigned to the .text of the TextField. The view also has a UIButton which performs validaiton on the contents of the TextFields. When the button is pressed and displays a warning via a UIAlert, after pressing OK the contents of the TextField which was set from the picker is cleared. Other TextFields which are set by the user entering values via the keyboard, are all working ok and they do not get cleared.
Can anybody suggest why this one style of TextField with a Picker to select a .text value, would be getting cleared when I press my Button and fire its action?
Many thanks in advance.
I was inadvertantly clearing the textField contents myself by doing;
instead of;