📅  最后修改于: 2022-03-11 15:01:00.434000             🧑  作者: Mango
public func textField(_ textField: UITextField, shouldChangeCharactersIn range: NSRange, replacementString string: String) -> Bool {
return range.location < 10
}