Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SWIFT

how to limit ui field in ios

public func textField(_ textField: UITextField, shouldChangeCharactersIn range: NSRange, replacementString string: String) -> Bool {
    return range.location < 10
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #limit #ui #field #ios
ADD COMMENT
Topic
Name
8+8 =