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

处理一处 字符计算bug

parent 23b1f3e2
......@@ -408,8 +408,9 @@ extension YHHKPlanItemView : UITextViewDelegate {
return true
}
let newLength = calcTextLength(string: textView.text)
return newLength <= maxNumbler - 1
let tempTxt = textView.text + text
let newLength = calcTextLength(string: tempTxt)
return newLength <= maxNumbler
}
func textViewDidChange(_ textView: UITextView) {
......
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