Latest 1.0.0
Homepage https://github.com/xjmeplws/AGDropdown
License MIT Copyright (c) 2016 xjmeplws
Platforms ios 8.0, requires ARC
Frameworks Foundation, UIKit
Authors

iOS Dropdownlist

the AGDropdownList is a single select view like the "select" dom in html, and it’s very easy to use it.

you can use the pod like that: pod ‘AGDropdown’, ‘~> 1.0.0’

below is the example:

    var datasource = [AGDropDownData]()
    datasource.append(AGDropDownData(value: "a_select 1"))
    datasource.append(AGDropDownData(value: "a_select 2"))
    datasource.append(AGDropDownData(value: "a_select 3", icon: UIImage(named: "favorites")))
    datasource.append(AGDropDownData(value: "a_select 4"))
    datasource.append(AGDropDownData(value: "b_select 1", icon: UIImage(named: "search")))
    datasource.append(AGDropDownData(value: "b_select 2", backgroundColor: UIColor.purpleColor()))
    datasource.append(AGDropDownData(value: "b_select 3"))
    let dropdown = AGDropdownList(frame: CGRectMake(100, 100, 250, 30))
    dropdown.groupBy = AGDropDownGroup.ByFirstChar
    dropdown.datasource = datasource
    dropdown.minHeight = 300.0
    dropdown.editable = false
    dropdown.layer.borderColor = UIColor.blackColor().CGColor
    dropdown.layer.borderWidth = 1.0
    self.view.addSubview(dropdown)

image

image

image

Latest podspec

{
    "name": "AGDropdown",
    "version": "1.0.0",
    "summary": "A dropdownlist view used on iOS.",
    "description": "It is a dropdownlist view used on iOS, which implement by Swift.",
    "homepage": "https://github.com/xjmeplws/AGDropdown",
    "license": {
        "type": "MIT",
        "text": "Copyright (c) 2016 xjmeplwsn"
    },
    "authors": {
        "xjmeplws": "[email protected]"
    },
    "source": {
        "git": "https://github.com/xjmeplws/AGDropdown.git",
        "tag": "1.0.0"
    },
    "platforms": {
        "ios": "8.0"
    },
    "requires_arc": true,
    "source_files": "AGDropdown/*",
    "frameworks": [
        "Foundation",
        "UIKit"
    ]
}

Pin It on Pinterest

Share This