A UIPickerView drop-in replacement with support for titles and Selection Indicator customization.
- 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
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.
- iOS 8.0 and above
- Xcode 7.0 and above
CKPickerView is available through Carthage. To install it, simply add the following line to your Cartfile:
github "cybertk/CKPickerView"
CKPickerView is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "CKPickerView"
@cybertk
CKPickerView is available under the MIT license. See the LICENSE file for more info.