Sébastien HOUZÉ

1pod

VLRTextField

This class intention is to provide an extension to the power of two great libraries on UITextField:

  • JVFloatLabeledTextField which purpose is to nicely display the place holder on top on the textfield when inserting text
  • HTAutocompleteTextField which purpose is to provide autocompletion (for example: emails, company names, ...)

VLRTextfield adds a new layer: validation (for example, it is great on forms). You can then specify several check behaviors like:

  • check content with regex (@see regex) AND/OR
  • fill optional or not (@see fillRequired) AND/OR
  • minimum number of characters to enter (for example: 8 characters for password) (@see minimumNumberOfCharacters) AND/OR
  • custom validation block (@see validateBlock).

All of these tests can be run on demand or while editing.

License: MIT

  • Objective C