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

how can I have multiple number of Selection Dropdown #10

Open
GeetCD opened this issue Sep 23, 2015 · 0 comments
Open

how can I have multiple number of Selection Dropdown #10

GeetCD opened this issue Sep 23, 2015 · 0 comments

Comments

@GeetCD
Copy link

GeetCD commented Sep 23, 2015

I need to have multiple number of dropdowns for particular Selection type, the number of sections and rows are gonna be sent from the API, and even if I initialize the dropdown
its not working , as only a single dropdown is being seen

this is my code, however only the last element is being seen in the table view
NSArray *tempKeys=[filterDictionary allKeys];

for (int i=0;i<[tempKeys count];i++) {

    NSString *section=[tempKeys objectAtIndex:i];
    NSArray *arr=[filterDictionary valueForKey:section];

VPPDropDown *  vppdropDown = [[VPPDropDown alloc] initSelectionWithTitle:section
                                                           tableView:self.tableView
                                                           indexPath:[NSIndexPath indexPathForRow:kRowDropDownSelection inSection:kSection1]
                                                            delegate:self
                                                       selectedIndex:1
                                                       elementTitles:arr];


}
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

1 participant