如何在ipad上的uitextfield上捕捉“enter”键事件?
实施 -textFieldShouldReturn: 委托方法,在 UITextFieldDelegate 协议。要使对象成为文本字段的委托,请设置该字段的 delegate 对象的属性。
-textFieldShouldReturn:
UITextFieldDelegate
delegate