我试图检查文本字段何时发生更改,这与用于文本视图的函数相同-textViewDidChange到目前为止,我已经这样做了:
  func textFieldDidBeginEditing(textField: UITextField) {
        if self.status.text == "" && self.username.text == "" {
            self.topRightButton.enabled = false
        } else {   
            self.topRightButton.enabled = true
        }
    }但是topRightButton一旦文本字段被按下,我希望它只在文本实际上被键入时才启用?
相似问题