【发布时间】:2019-02-25 21:12:50
【问题描述】:
我将 UIPickerView 设置为 UITextField 的输入。如何知道用户何时按下 UITextField?
我已尝试使用 TouchDown 和 EditingDidStart 事件,但它们不会触发。
我将事件链接到方法的代码如下
myTextField.addTarget(self, action: #selector(myMethod), for: .<Event>)
【问题讨论】:
-
各种
UITextFieldDelegate方法怎么样? -
@rmaddy 是的,我看错地方了
标签: ios swift uitextfield uikit uipickerview