Darkseal / DownPicker

A lightweight DropDownList / ComboBox for iOS, written in Objective-C
MIT License
202 stars 93 forks source link

DownPicker changes the value of the textField to match the currently … #46

Closed naveenvem closed 3 years ago

naveenvem commented 7 years ago

…selected option even without 'Done' being pressed. This is fine in most cases as the 'Cancel' button resets the value in the textField. However if the super view receives a 'endEditing' call then DownPicker is hidden without resetting the value in the textField. Added support for a new flag 'updateTextFieldValueOnlyWhenDonePressed'. The default value is NO so there is no change to default DownPicker functionality. But the flag can be set to YES to take advantage of the new functionality.