最佳答案
- 设置
label.userInteractionEnabled = true
label.addGestureRecognizer(UITapGestureRecognizer(target: self, action: "tapFunc"))
- 在您的 tapFunc 中:
textField.becomeFirstResponder
关于ios - 快速正确使用 UITextField,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34810978/