Latest 0.0.2
Homepage https://github.com/yoonhg84/CPSelectionManager
License MIT
Platforms ios 9.0
Authors

다수의 UIButton 에서 다중 선택, 하나 선택 가능한 기능을 만들때 쉽게 이용해 보세요.

Example

Installation

Support only cocoapods.

Podfile

pod 'CPSelectionManager'

Usage

Single selection

let selectionManager = CPSelectionManager()
selectionManager.addControl(button1)
selectionManager.addControl(button2)
selectionManager.selectionType = .Multiple

Multi selection

let selectionManager = CPSelectionManager()
selectionManager.addControl(button1)
selectionManager.addControl(button2)
selectionManager.selectionType = .Single

Callback

selectionManager.changedSelection = { manager in
    print(manager)
}

License

MIT License

Latest podspec

{
    "name": "CPSelectionManager",
    "version": "0.0.2",
    "summary": "Manage selection of controls. (single/multiple selection)",
    "description": "Manage selection of controls.nSupport single, multiple selection.",
    "homepage": "https://github.com/yoonhg84/CPSelectionManager",
    "screenshots": "https://github.com/yoonhg84/CPSelectionManager/raw/master/README/CPSelectionManager.gif",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "yoonhg84": "[email protected]"
    },
    "platforms": {
        "ios": "9.0"
    },
    "source": {
        "git": "https://github.com/yoonhg84/CPSelectionManager.git",
        "tag": "0.0.2"
    },
    "source_files": [
        "Source",
        "Source/**/*.{h,m,swift}"
    ]
}

Pin It on Pinterest

Share This