VMaskTextField is a library which create an input mask for iOS.
Clone or download
viniciusmo Merge pull request #21 from felipeferri/master
Make VMaskEditor send an EditingChanged event when setting the value …
Latest commit 6334537 Sep 21, 2017
Failed to load latest commit information.
Example Fix Jan 6, 2016
Pod Merge pull request #21 from felipeferri/master Sep 21, 2017
Resources Creating demo Sep 7, 2014
.gitignore Initial commit Sep 5, 2014
.travis.yml Updating travis Dec 29, 2014
LICENSE Initial commit Sep 5, 2014
README.md Editing readme Sep 8, 2014
VMaskTextField.podspec Change version Jan 6, 2016



CI Status Version License Platform

An inputmask helps the user with the input by ensuring a predefined format. This can be useful for dates, numerics, phone numbers etc



@interface VViewController ()

@property (weak,nonatomic) IBOutlet VMaskTextField * maskTextField;


@implementation VViewController

- (void)viewDidLoad{
    //Telephone with Code Area
    self.maskTextField.mask = @"(##) ####-####";
    self.maskTextField.delegate = self;

- (BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string{
   return  [_maskTextField shouldChangeCharactersInRange:range replacementString:string];



  • Validating data type
  • Flexible masks
  • Automatic maxlength


VMaskTextField is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "VMaskTextField"

or copy VMaskTextField.h and VMaskTextField.m to your project folder.


viniciusmo, vinicius.moises.oliveira@gmail.com


VMaskTextField is available under the MIT license. See the LICENSE file for more info.