VPPDropDown icon indicating copy to clipboard operation
VPPDropDown copied to clipboard

how can I have multiple number of Selection Dropdown

Open GeetCD opened this issue 9 years ago • 0 comments

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


}

GeetCD avatar Sep 23 '15 11:09 GeetCD