Answers for "uitextfield set max length"

0

uitextfield set max length

extend UITextFieldDelegate

public func textField(_ textField: UITextField, shouldChangeCharactersIn range: NSRange, replacementString string: String) -> Bool {
    return range.location < 15
}
Posted by: Guest on March-19-2022

Browse Popular Code Answers by Language