 }
 
 /// TTADataPickerView
-class TTADataPickerView: UIView {
+open class TTADataPickerView: UIView {
     
     // MARK: - Public properties
     
-    weak var delegate: TTADataPickerViewDelegate?
+    public weak var delegate: TTADataPickerViewDelegate?
     
     /// Picker view component type, for MORE TTADataPickerViewType
-    var type: TTADataPickerViewType = .text {
+    public var type: TTADataPickerViewType = .text {
         didSet {
             switch type {
             case .text:

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


/// The component tpye of the TTADataPickerView

public enum TTADataPickerViewType {
    /// pickerView default
    case text
    /// datePicker default, date
