Latest 1.0.1
Homepage https://github.com/DamianSheldon/DMLSelector
License MIT
Platforms ios 8.0
Authors

[![CI Status](http://img.shields.io/travis/Meiliang Dong/DMLSelector.svg?style=flat)](https://travis-ci.org/Meiliang Dong/DMLSelector)
Version
License
Platform

DMLSelector is a drop down style selector, which support select in single, double table and collection view.

Screenshots



Video

Features

  • Support single table, double table and collection view style selector
  • Support exclusive select for specific section
  • Support custom image for selector component

Usage

// 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(@"%sn values:%@", __func__, selector.selectorValues);
}

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

  • iOS 8.0+

Installation

DMLSelector is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod "DMLSelector"

License

DMLSelector is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "DMLSelector",
    "version": "1.0.1",
    "summary": "A drop down style selector.",
    "description": "DMLSelector is a drop down style selector which support select in single, double table and collection view.",
    "homepage": "https://github.com/DamianSheldon/DMLSelector",
    "license": "MIT",
    "authors": {
        "Meiliang Dong": "[email protected]"
    },
    "source": {
        "git": "https://github.com/DamianSheldon/DMLSelector.git",
        "tag": "1.0.1"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "DMLSelector/Classes/**/*",
    "resource_bundles": {
        "DMLSelector": [
            "DMLSelector/Assets/*.png"
        ]
    }
}

Pin It on Pinterest

Share This