I’ve mentioned a number of libraries for creating input forms most recently XLForm.
You might want to use a full-blown form library and here’s an open source component allowing you to simply create text entry fields with easy masking for numeric, alphanumeric and letter values called OCMaskedTextField from Omer Cora.
Creating Masked text fields with OCMaskedTextField is extremely and this code example from the readme shows how to set up a text field with masking for number entry:
initWithFrame:CGRectMake(20, 94, 280, 33)
andMask:@"TR – #### #### #### #### #### ####"
showMask:YES];
Here’s an image showing several masked text fields from the readme:

You can find OCMaskedTextField on Github here.
A handy library to have if you’re looking to create some masked text/number entry fields.
- Component For Creating Text Fields and Text Views With Slick Animated Floating Descriptions
- Open Source iOS Expanding Text Entry Component That Sticks To The Top Of The Keyboard
- Open Source Component Providing A Custom Text Field With A Stylish Built-In Validity Indicator
- Open Source Library For Easily Creating Dynamic Forms
- Open Source iOS Full Featured Text Editing Component With A Great Interface
Original article: Open Source iOS Component For Creating Masked Text/Number Entry Forms
©2014 iOS App Dev Libraries, Controls, Tutorials, Examples and Tools. All Rights Reserved.




