Darkseal / DownPicker

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

Multiple Down Pickers #25

Closed ValentinDenis closed 8 years ago

ValentinDenis commented 8 years ago

When I set up multiple down pickers in the same pages, If I choose an option for one, it disables all the others. EDIT: Same if I have another classic UITextField and I type in a value.

Darkseal commented 8 years ago

Added an Example project to the repository who shows how to implement multiple downpickers in a single View. Let me know if it solves your issue.

johnrajahkkd commented 5 years ago

I solved it like below.

in .h file @property (nonatomic) DownPicker picker1; @property (nonatomic) DownPicker picker2;

in .m file NSArray *array1 = @[@"data 1", @"data 2", @"data 3"]; self.picker1 = [[DownPicker alloc] initWithTextField:self.priceTierTF withData:array1];

NSArray *array2 = @[@"data 1", @"data 2", @"data 3"]; self.picker2 = [[DownPicker alloc] initWithTextField:self.priceTierTF withData:array2];