CKPickerView
A UIPickerView drop-in replacement with support for titles and Selection Indicator customization.
Features
- Add Titles on top of UIPickerView thru
titles
for simple stringsattributedTitles
for attributed stringstitleView
for fully customized title view
- Ability to update Selection Indicator Color thru
selectionIndicatorColor
- Ability to update Selection View's Background Color thru
selectionBackgroundColor
Getting started
CKPickerView is a drop-in replacement of UIPickerView with extra APIs, so you can treat CKPickerView as UIPickerView, like
import CKPickerView
let picker = CKPickerView()
// Set picker title
picker.titles = ["Title"]
// Set selection view's background color
picker.selectionBackgroundColor = UIColor.blackColor()
// Set seliection indicator's color
picker.selectionIndicatorColor = UIColor.whiteColor()
You can also run the example project, by cloning the repo, and open Example
target within Xcode.
Requirements
- iOS 8.0 and above
- Xcode 7.0 and above
Installation
Carthage
CKPickerView is available through Carthage. To install it, simply add the following line to your Cartfile:
github "cybertk/CKPickerView"
Cocoapods
CKPickerView is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "CKPickerView"
Author
@cybertk
License
CKPickerView is available under the MIT license. See the LICENSE file for more info.