Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

uitextfield set max length

extend UITextFieldDelegate

public func textField(_ textField: UITextField, shouldChangeCharactersIn range: NSRange, replacementString string: String) -> Bool {
    return range.location < 15
}
 
PREVIOUS NEXT
Tagged: #uitextfield #set #max #length
ADD COMMENT
Topic
Name
8+7 =