Latest 1.0.8
Homepage https://github.com/viniciusmo/VMaskTextField
License MIT
Platforms ios 7.0, requires ARC
Authors

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, [email protected]

License

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

Latest podspec

{
    "name": "VMaskTextField",
    "version": "1.0.8",
    "summary": "VMaskTextField is a library which create an input mask.",
    "description": "An inputmask helps the user with the input by ensuring a predefined format. This can be useful for dates, numerics, phone numbers etc",
    "homepage": "https://github.com/viniciusmo/VMaskTextField",
    "license": "MIT",
    "authors": {
        "viniciusmo": "[email protected]"
    },
    "source": {
        "git": "https://github.com/viniciusmo/VMaskTextField.git",
        "tag": "1.0.8"
    },
    "social_media_url": "https://twitter.com/viniciusmo90",
    "platforms": {
        "ios": "7.0"
    },
    "requires_arc": true,
    "source_files": "Pod/Classes",
    "resource_bundles": {
        "VMaskTextField": [
            "Pod/Assets/*.png"
        ]
    },
    "public_header_files": "Pod/Classes/**/*.h"
}

Pin It on Pinterest

Share This