A selection controller made with combinitation of UITableView and UICollectionview
Copy JGCustomSelection from the storyboard and initialize the viewcontroller whenever needed
Add the files in the classes folder to your project.
JGCustomSelection *customSelection = [self.storyboard instantiateViewControllerWithIdentifier:@"JGCustomSelection"];
customSelection.tableViewDataArray = [[self generateDataSource] mutableCopy];
customSelection.delegate = self;
[self presentViewController:customSelection animated:YES completion:^{
}];
#pragma mark - JGCustomSelectionDelegate
-(void)JGCustomSelectionSelectedValues:(NSArray *)selectedValues{
self.resultLbl.text = [NSString stringWithFormat:@"%lu developers selected",(unsigned long)selectedValues.count];
}
JGCustomSelection includes a sample project and revelent classes.
- This project uses ARC.
- This project was tested with iOS 7 & 8.
JGCustomSelection is available under the MIT license. See the LICENSE file for more info.