Skip to content
master
Go to file
Code

Latest commit

Make VMaskEditor send an EditingChanged event when setting the value …
6334537

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
Fix
Jan 6, 2016
Sep 7, 2014
Sep 5, 2014

README.md

VMaskTextField

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

demo

Usage

@interface VViewController ()

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

@end

@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];
}

@end

Features

  • Validating data type
  • Flexible masks
  • Automatic maxlength

Installation

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.

Author

viniciusmo, vinicius.moises.oliveira@gmail.com

License

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

About

VMaskTextField is a library which create an input mask for iOS.

Resources

License

Packages

No packages published
You can’t perform that action at this time.