How to do a live UITextField count while typing (Swift)?

后端 未结 10 1237
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-05 13:37

I would like to count the character when user keep typing in UITextField with swift.

Image of Field and Label:

10条回答
  •  我在风中等你
    2020-12-05 14:38

    Swift 4 for UITextView change text event UITextViewDelegate

    func textView(_ textView: UITextView, shouldChangeTextIn range: NSRange, replacementText text: String) -> Bool {
    
    }
    

提交回复
热议问题