         self.textField.keyboardType = .emailAddress
         self.textField.autocorrectionType = .no
         self.textField.autocapitalizationType = .none
-        self.textField.delegate = self
+        self.textField.myDelegate = self
         //self.additionalTextFieldYOffset = 0.0
         self.additionalTextFieldYOffset = 1.5
         self.textField.addTarget(self, action: #selector(CLTokenInputView.onTextFieldDidChange(sender:)), for: .editingChanged)

        self.unselectAllTokenViewsAnimated(animated: true)
    }
    
    func textFieldDidEndEditing(textField: UITextField) {
        //print("textFieldDidEndEditing:")

        self.delegate?.tokenInputViewDidEndEditing(aView: self)
        self.tokenViews.last?.hideUnselectedComma = true
    }
    
    func textFieldShouldReturn(textField: UITextField) -> Bool {
        //print("textFieldShouldReturn:")

        self.tokenizeTextfieldText()
        return false
    }
    
    func textField(textField: UITextField, shouldChangeCharactersInRange range: NSRange, replacementString string: String) -> Bool {
        //print("textField:shouldChangeCharactersInRange:replacementString:\(string)")

        if string.characters.count > 0 && self.tokenizationCharacters.contains(string) {

    
    //MARK: UITextFieldDelegate
    
    func textFieldDidBeginEditing(_ textField: UITextField) {
        //print("textFieldDidBeginEditing:")
        self.delegate?.tokenInputViewDidBeginEditing(aView: self)
        
