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 DownPickers on same view #35

Open
murilonkz opened this issue Jan 30, 2016 · 3 comments
Open

Multiple DownPickers on same view #35

murilonkz opened this issue Jan 30, 2016 · 3 comments

Comments

@murilonkz
Copy link

If I add multiple downpickers in the same view, when I select a option in the first, all others pickers select the first option automatically...

@Phmichau
Copy link

Same problem for me

@jcamachov
Copy link

The problem in my case was IQKeyboardManager library. I removed this folder from my project and DownPicker works fine.

@johnrajahkkd
Copy link

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

4 participants