Alexiusy / LineField

A subclass of UITextField.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

LineField

Screenshot

Installation

Just drag the file in Classes into your project.

Usage

You can just use it as UITextField or change the class name as LineField in the storyboard or xib file.

Code

LineField *textfield = [[LineField alloc] initWithFrame:frame];
// Set properties like bottom line color, float label color etc.
[self.view addSubview:textfield];
let field = LineField()
// ...
self.view.addSubview(field)

XIB/Storyboard

Select your textfield control, go to the inspector =>Custom Class =>Class , Change it as LineField. OK, It's done.

About

A subclass of UITextField.

License:GNU General Public License v3.0


Languages

Language:Swift 100.0%