#MHTextField MHTextField is an iOS drop-in class that extends UITextField with built-in toolbar, validation and scrolling support.
##Requirements MHTextField works on iOS 5 and above and is compatible with ARC projects. It depends on the following Apple frameworks:
- Foundation.framework
- UIKit.framework
##Including MHTextField to your project
Source files
You can directly add the MHTextField.h
and MHTextField.m
source files to your project.
- Download the latest zip from github or clone the source in your desired directory.
- Open your project in Xcode, then drag and drop
MHTextField.h
andMHTextField.m
onto your project (use the "Product Navigator view"). Make sure to select Copy items when asked if you extracted the code archive outside of your project. - Include MHTextField with
#import "MHTextField.h"
.
CocoaPods
CocoaPods is the recommended way to add MHTextField to your project.
- Add a pod entry for MHTextField to your Podfile
pod 'MHTextField', '~> 0.5'
- Install the pod(s) by running
pod install
. - Include MHTextField with
#import "MHTextField.h"
.
License
This code is distributed under the terms and conditions of the MIT license.