Get Updates By E-mail 

Article Written By:
Johann Dowa

Open Source iOS Component For Creating Masked Text/Number Entry Forms

  •  
  •  
  •  
  •  
  •  

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:

OCMaskedTextFieldView *textField = [[OCMaskedTextFieldView alloc]
                                        initWithFrame:CGRectMake(20, 94, 280, 33)
                                        andMask:@"TR - #### #### #### #### #### ####"
                                        showMask:YES];

Here’s an image showing several masked text fields from the readme:
OCMaskedTextField

You can find OCMaskedTextField on Github here.

A handy library to have if you’re looking to create some masked text/number entry fields.


  •  
  •  
  •  
  •  
  •  

Submit A Resource

Have you created a useful tutorial, library or tool for iOS development that you would like to get in front of our 300,000+ monthly page views from iOS developers?

You can submit the url here.

The resources we feel will appeal to our readers the most will be posted on the front page.

Comments