Latest 0.3.0
Homepage https://github.com/yatatsu/TKAutoCompleteTextField
License MIT
Platforms ios 6.0, requires ARC
Authors

Version
License
Platform

TKAutoCompleteTextField is UITextField with simple auto complete.
It shows list of suggestion below textField when you input some character.

alt tag

Usage

Set TKAutoCompleteTextField in xib or storyboard, and add property. Then,

“`ViewController.m

// configure suggestions
self.autoCompleteTextField.suggestions = @[@"apple", @"orange", @"grape", @"lemon"];

// you can select match type; left-hand match or partical match.
self.autoCompleteTextField.enableStrictFirstMatch = YES; // default is NO

// you can select whether or not suggestion in empty input.
self.autoCompleteTextField.enablePreInputSearch = YES; // default is NO



it's all.

## Other

### Delegates

- ``TKAutoCompleteTextField:heightForSuggestionView:`` : specify max height.
- ``TKAutoCompleteTextField:numberOfVisibleRowInSuggestionView:`` : specify limit of visible suggestion count.
  - default count is 3.

### properties

- ``enableAutoComplete`` : show suggestion view.
- ``enableStrictFirstMatch`` : left-hand match or partical match.
- ``enablePreInputSearch`` : show suggestion view when input is empty.
- ``marginLefTextPlaceholder``
- ``marginTopTextPlaceholder``

## auther

[yatatsu](https://github.com/yatatsu), [email protected]

Latest podspec

{
    "name": "TKAutoCompleteTextField",
    "version": "0.3.0",
    "summary": "Simple auto completion with UITextField",
    "homepage": "https://github.com/yatatsu/TKAutoCompleteTextField",
    "screenshots": "https://raw.githubusercontent.com/yatatsu/TKAutoCompleteTextField/master/TKAutoCompleteTextFieldSample.png",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "yatatsu": "[email protected]"
    },
    "platforms": {
        "ios": "6.0"
    },
    "source": {
        "git": "https://github.com/yatatsu/TKAutoCompleteTextField.git",
        "tag": "0.3.0"
    },
    "source_files": "TKAutoCompleteTextField/*.{h,m}",
    "exclude_files": [
        "TKAutoCompleteTextFieldSample",
        "TKAutoCompleteTextFieldTests"
    ],
    "requires_arc": true
}

Pin It on Pinterest

Share This