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: 3 months 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 (about 7 years ago)
- Last Synced: 2024-04-29T22:12:51.846Z (10 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
[](https://travis-ci.org/viniciusmo/VMaskTextField)
[](http://cocoadocs.org/docsets/VMaskTextField)
[](http://cocoadocs.org/docsets/VMaskTextField)
[](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

## 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.