Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SWIFT

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
3+7 =