use*_*512 5 ios swift swift4 swift5
如何检测用户是否将某些内容粘贴到 中UITextField?
UITextField
我在网上和 StackOverflow 上找到的所有答案都与UITextViews.
UITextView
Leo*_*bus 8
您只需要重写委托UIResponderStandardEditActions上的粘贴方法UITextField:
UIResponderStandardEditActions
override func paste(_ sender: Any?) { print("do someting") super.paste(sender) }
归档时间:
5 年,3 月 前
查看次数:
4359 次
最近记录: