how to know when text is pasted into UITextView

后端 未结 9 474
暗喜
暗喜 2020-11-30 10:15

What event is fired when a block of text is pasted into a UITextView? I need to modify the frame of my textView when the text is pasted in.

Thanks for reading.

9条回答
  •  再見小時候
    2020-11-30 10:28

    try subclasses UITextview,and override this function.

    public override func paste(_ sender: Any?) 
    

提交回复
热议问题