Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple Down Pickers #25

Closed
ValentinDenis opened this issue Sep 7, 2015 · 2 comments
Closed

Multiple Down Pickers #25

ValentinDenis opened this issue Sep 7, 2015 · 2 comments

Comments

@ValentinDenis
Copy link

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
Copy link
Owner

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
Copy link

johnrajahkkd commented Aug 9, 2018

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];

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants