Commit ed86c79b authored by pete谢兆麟's avatar pete谢兆麟

限制电话输入的类型为number

parent 20c65868
...@@ -182,6 +182,9 @@ class YHItemView: UIView { ...@@ -182,6 +182,9 @@ class YHItemView: UIView {
if dataSource.id == .id23 { if dataSource.id == .id23 {
messageTextField.keyboardType = .asciiCapable messageTextField.keyboardType = .asciiCapable
} }
if dataSource.id == .id29 {
messageTextField.keyboardType = .numberPad
}
if dataSource.isNeed ?? false { if dataSource.isNeed ?? false {
let str = "*" + (dataSource.title ?? "") let str = "*" + (dataSource.title ?? "")
let attributes: [NSAttributedString.Key: Any] = [ let attributes: [NSAttributedString.Key: Any] = [
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment