//
//  CCTextField.swift
//  SwiftProject
//
//  Created by soldoros on 2024/1/10.
//

import UIKit

@objc protocol CCTextFieldDelegate:NSObjectProtocol {
    
    //监听键盘的删除操作
    @objc optional func CCTextKeyBordDelete()
    
}

class CCTextField: UITextField {

    weak var ssdeleget:CCTextFieldDelegate?
    
    override func deleteBackward() {
        super.deleteBackward()
        ssdeleget?.CCTextKeyBordDelete!()
    }

}
