NKPickerTextField is just a better UITextField with UIPickerView logic in it. Try it out.
iOS 8.0+
Xcode 8+
Swift 3.1
CocoaPods is a dependency manager for Cocoa projects.
Specify NKPickerTextField into your project's Podfile:
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '9.0'
use_frameworks!
pod 'NKPickerTextField'
Then run the following command:
$ pod install
- Change the class of a UITextField to NKPickerTextField in storyboard or init in code.
- Set the pickerOptions property of the NKPickerTextField