Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dayitv89/gdstextfield
GDSTextField for multiple text field with single characters input for each text field with equal width and height.
https://github.com/dayitv89/gdstextfield
Last synced: 9 days ago
JSON representation
GDSTextField for multiple text field with single characters input for each text field with equal width and height.
- Host: GitHub
- URL: https://github.com/dayitv89/gdstextfield
- Owner: dayitv89
- License: gpl-3.0
- Created: 2015-05-01T06:54:23.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-01-04T07:24:34.000Z (about 9 years ago)
- Last Synced: 2023-03-24T08:42:24.104Z (almost 2 years ago)
- Language: Objective-C
- Size: 1.37 MB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GDSTextField
GDSTextField for multiple text field with single characters input for each text field with equal width and height.![alt tag] (https://raw.githubusercontent.com/dayitv89/GDSTextField/master/projectImage.png)
Just make a UIView in storyboard and connect to GDSTextField object, and add this line into code
```
[txtField1 setFields:5
backgroundColor:[UIColor whiteColor]
tintColor:[UIColor orangeColor]
textColor:[UIColor blackColor]
textSelectedColor:[UIColor redColor]
fieldRightPadding:15.f
keyboardType:UIKeyboardTypeNumberPad
font:[UIFont systemFontOfSize:30.f]
andDelegate:self];
[txtField2 setFields:6
backgroundImage:[UIImage imageNamed:@"circle.png"]
tintImage:[UIImage imageNamed:@"circle1.jpeg"]
textColor:[UIColor blackColor]
textSelectedColor:[UIColor redColor]
fieldRightPadding:5.f
keyboardType:UIKeyboardTypeDefault
font:[UIFont systemFontOfSize:30.f]
andDelegate:self];
```when you want text of GDSTextField, get it simple
```
NSLog(@"value of textfield1 %@, textField2 %@",txtField1.text, txtField2.text);
```And it will work, Voila!