IPickerView
单行自定义数据源选择器
效果如下
使用
1、方法一
ICustomDataPickerView.showPickerView(title: "哈哈", data: ["fdsa", "888", "fsaf"]) { (text) in
print(text)
self.choseTextLabel.text = text
}
2、方法二
let pickerView = ICustomDataPickerView()
pickerView.dataSource = ["fdsa", "888", "fsaf"]
pickerView.resultBlock = { text in
print(text)
self.choseTextLabel.text = text
}
pickerView.show()