chenzeyu / CZPicker

a picker view shown as a popup for iOS in Objective-C
MIT License
527 stars 90 forks source link

Checkmark is not cleared when cancel is pressed. #35

Closed kunalverma25 closed 8 years ago

kunalverma25 commented 8 years ago

If I select a cell, and presses enter, and the open the popup again, the checkmark is still there. Just a bug there..

chenzeyu commented 8 years ago

It's intended, because the picker instance was not destroyed and gets reused. You have two options:

  1. init a new czpicker instance.
  2. clear selected rows, you can refer to CZPickerView.h to find how to set selected rows.