Commit d8528e93 authored by David黄金龙's avatar David黄金龙

控制 30个字符

parent fed21496
...@@ -585,7 +585,7 @@ extension YHItemView: UITextFieldDelegate { ...@@ -585,7 +585,7 @@ extension YHItemView: UITextFieldDelegate {
} }
var newText = (textField.text! as NSString).replacingCharacters(in: range, with: string) var newText = (textField.text! as NSString).replacingCharacters(in: range, with: string)
if (dataSource?.id == .id21 || dataSource?.id == .id22 || dataSource?.id == .id23) && newText.count > 30 { if (dataSource?.id == .id21 || dataSource?.id == .id22 || dataSource?.id == .id23 || dataSource?.id == .id1) && newText.count > 30 {
return false return false
} }
......
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