CocoaPods trunk is moving to be read-only. Read more on the blog, there are 18 months to go.
TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Aug 2016 |
Maintained by Meiliang Dong.
// Initialization
DMLSelector *selector = [[DMLSelector alloc] initWithFrame:CGRectZero];
selector.dataSource = self;
selector.delegate = self;
// Implement dataSource
- (NSUInteger)numberOfComponentsInSelector:(DMLSelector *)selector
{
return self.selectorComponentDescriptors.count;
}
- (DMLSelectorComponentDescriptor *)selector:(DMLSelector *)selector componentDescriptorForComponentAtIndex:(NSUInteger)index
{
return self.selectorComponentDescriptors[index];
}
// Implement delegate
- (void)selector:(DMLSelector *)selector didSelectComponentAtIndexPath:(DMLSelectorIndexPath *)indexPath
{
NSLog(@"%s\n values:%@", __func__, selector.selectorValues);
}
To run the example project, clone the repo, and run pod install
from the Example directory first.
DMLSelector is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "DMLSelector"
DMLSelector is available under the MIT license. See the LICENSE file for more info.