CocoaPods trunk is moving to be read-only. Read more on the blog, there are 19 months to go.

CPSelectionManager 0.0.2

CPSelectionManager 0.0.2

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release May 2016
SPMSupports SPM

Maintained by Chope.




  • By
  • yoonhg84

CPSelectionManager

다수의 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