TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Dec 2014 |
Maintained by Unclaimed.
AutoCompleteSuffixView helps to complete account's suffix automatically when user type characters in UITextField. For more details, please see the screenshot below.
Normal installation
CocoaPods style installation
Install CocoaPods if you do not have it installed.
$[sudo] gem install cocoapods
$ pod setup
create Podfile right under your project directory, and its content is:
pod 'AutoCompleteSuffixView', '~> 0.1'
run pod install
on your terminal.
import header file: import "AutoCompleteSuffixView.h"
Sample usage:
NSArray *suffixs = @[@"163.com", @"qq.com", @"126.com", @"vip.188.com"];
AutoCompleteSuffixView *autoBindUrs = [[AutoCompleteSuffixView alloc] initWithInputField:self.ursTextField suffixs:suffixs];
[self.view addSubview:autoBindUrs];
suffixs
is the completion suffixs array.Memo:AutoCompleteSuffixExample's Xcode project can only run in Xcode 5+