Latest 0.2.2
Homepage https://github.com/siuying/IGAutoCompletionToolbar
License MIT
Platforms ios 7.0, requires ARC
Frameworks QuartzCore
Authors

IGAutoCompletionToolbar

IGAutoCompletionToolbar is a UICollectionView subclass created to display auto completion via a keyboard accessory view.

screenshot

Requirements

iOS 7 or above with ARC.

Installation

If you are using CocoaPods, add ‘IGAutoCompletionToolbar’ to your Podfile:

pod 'IGAutoCompletionToolbar', '~> 0.2.1'

Otherwise, download the projects and add files under IGAutoCompletionToolbar/* and ‘QuartzCore’ framework to your project.

Usage

Import IGAutoCompletionToolbar from your application:

#import "IGAutoCompletionToolbar.h"

Then create the toolbar and connect it with the textfield:

// Create the toolbar
IGAutoCompletionToolbar* toolbar = [[IGAutoCompletionToolbar alloc] initWithFrame:CGRectMake(0,0,320,44)];

// set auto complete items
toolbar.items = @[@"Apple", @"Banana", @"Blueberry", @"Grape", @"Pineapple", @"Orange", @"Pear"];

// setup the delegate
toolbar.toolbarDelegate = self;

// setup the text field to be used
toolbar.textField = self.textfield;

// set the toolbar as the input accessory view of the textfield
self.textfield.inputAccessoryView = toolbar;

Contact

Francis Chong [Blog, Twitter]

License

IGAutoCompletionToolbar is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "IGAutoCompletionToolbar",
    "version": "0.2.2",
    "summary": "IGAutoCompletionToolbar is a UICollectionView subclass created to display auto completion via a keyboard accessory view.",
    "homepage": "https://github.com/siuying/IGAutoCompletionToolbar",
    "authors": {
        "Francis Chong": "[email protected]"
    },
    "license": "MIT",
    "source": {
        "git": "https://github.com/siuying/IGAutoCompletionToolbar.git",
        "tag": "0.2.2"
    },
    "requires_arc": true,
    "platforms": {
        "ios": "7.0"
    },
    "frameworks": "QuartzCore",
    "source_files": "IGAutoCompletionToolbar/Library/*.{m,h}"
}

Pin It on Pinterest

Share This