To run the example project, clone the repo, and run pod install
from the Example directory first.
In your custom model "showedStr" is reture your pickerView's showed string.
import InputPickerView
class CategoryModel: Codable,InputPickerData {
func showedStr() -> String {
return category
}
var category:String
var categoryKey:String
}
use InputPickerView
lazy var pickerView = InputPickerView<CategoryModel>()
pickerView.setupData(dataSource) { (row, selectStr, selectModel) in
}
myField.inputView = pickerView
InputPickerView is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'InputPickerView'
Junyi1227, trance1227@gmail.com
InputPickerView is available under the MIT license. See the LICENSE file for more info.