Commit 06d9aa06 authored by David黄金龙's avatar David黄金龙

修改 几处bug

parent f7c36964
......@@ -594,6 +594,7 @@ extension YHApplyActivityAlert: UITextFieldDelegate {
} else if textField == applyNumberTextField {
if !string.isNumeric {
YHHUD.flash(message: "请输入数字")
applyNumber = 1
updateButtonUI()
return false
}
......@@ -602,10 +603,12 @@ extension YHApplyActivityAlert: UITextFieldDelegate {
if let item = Int(newText),item > 10 {
textField.text = "10"
YHHUD.flash(message: "最多添加10人")
applyNumber = 10
updateButtonUI()
return false
} else if let item = Int(newText),item < 1 {
textField.text = "1"
applyNumber = 1
YHHUD.flash(message: "最少添加1人")
updateButtonUI()
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