     }
     
     @available(iOS 2.0, *)
-    func pickerView(_ pickerView: UIPickerView, didSelectRow row: Int, inComponent component: Int) {
+    public func pickerView(_ pickerView: UIPickerView, didSelectRow row: Int, inComponent component: Int) {
         let componentCount = pickerView.numberOfComponents
         for index in 0..<componentCount {
             guard index != component && index > component else { continue }


/// TTADataPickerViewDelegate

protocol TTADataPickerViewDelegate: NSObjectProtocol {
    
    /// When the type of dataPickerView is `.text`, you should use this function to handle the selection
    ///

        setupUI()
    }
    
    public required init?(coder aDecoder: NSCoder) {
        var rect = UIScreen.main.bounds
        rect.size.height = 260 // 216 + 44
        super.init(coder: aDecoder)
        setupUI()
    }
    
    public convenience init(title: String, type: TTADataPickerViewType) {
        self.init(frame: CGRect.zero)
        toolBar.titleButton.title = title
        configType(type: type)
