Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/viniciusmo/VMaskTextField
VMaskTextField is a library which create an input mask for iOS.
https://github.com/viniciusmo/VMaskTextField
Last synced: 6 days ago
JSON representation
VMaskTextField is a library which create an input mask for iOS.
- Host: GitHub
- URL: https://github.com/viniciusmo/VMaskTextField
- Owner: viniciusmo
- License: mit
- Created: 2014-09-05T20:45:41.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2018-02-20T02:20:37.000Z (almost 7 years ago)
- Last Synced: 2024-04-29T22:12:51.846Z (8 months ago)
- Language: Objective-C
- Homepage:
- Size: 412 KB
- Stars: 380
- Watchers: 8
- Forks: 58
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-ios - VMaskTextField - VMaskTextField is a library which create an input mask for iOS. (UI / TextField & TextView)
- awesome-ios-star - VMaskTextField - VMaskTextField is a library which create an input mask for iOS. (UI / TextField & TextView)
README
# VMaskTextField
[![CI Status](http://img.shields.io/travis/viniciusmo/VMaskTextField.svg?style=flat)](https://travis-ci.org/viniciusmo/VMaskTextField)
[![Version](https://img.shields.io/cocoapods/v/VMaskTextField.svg?style=flat)](http://cocoadocs.org/docsets/VMaskTextField)
[![License](https://img.shields.io/cocoapods/l/VMaskTextField.svg?style=flat)](http://cocoadocs.org/docsets/VMaskTextField)
[![Platform](https://img.shields.io/cocoapods/p/VMaskTextField.svg?style=flat)](http://cocoadocs.org/docsets/VMaskTextField)An inputmask helps the user with the input by ensuring a predefined format. This can be useful for dates, numerics, phone numbers etc
![demo](https://raw.githubusercontent.com/viniciusmo/VMaskTextField/master/Resources/vmasktextfield.gif)
## Usage
```objective-c
@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](http://cocoapods.org). To install
it, simply add the following line to your Podfile:
```ruby
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.