请问一下各位大大
假设我在ViewController 加入了两个 UITextView
var textView1 = UIView(frame: CGRect(x:0, y:0, width:100, height:100))
var textView2 = UIView(frame: CGRect(x:100, y:100, width:100, height:100))
textView1.delegate = self
textView2.delegate = self
self.view.addSubView(textView1)
self.view.addSubView(textView2)
func textViewDidBeginEditing(_ textView: UITextView) {
//问题 :请问这边要如何判断是 textView1在进行编辑
还是 textView2在进行编辑呢?
}
麻烦各位非常感谢