UITextField subclass that autofills the top google suggestion based on the text input
Objective-C C
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
AutoCompletingTextFieldDemo
SAAutoCompletingTextField
README.md

README.md

SAAutoCompletingTextField

SAAutoCompletingTextField Screenshot

SAAutoCompletingTextField Screenshot

This is a UITextField subclass that autofills the top google suggestion based on the text input. This is designed as a textfield replacement to provide suggestions.

Demo

Build and run the AutoCompletingTextFieldDemo project in Xcode to see SAAutoCompletingTextField in action.

Installation

  1. Drag and drop the SAAutoCompletingTextField class files into your project, along with the AFNetworking and TouchXML folders (if not already included).

  2. Include the following framework in your project:

libxml2.dylib
  1. In Project > Build Settings > Header Search Paths, add this “non-recursive” directory for TouchXML:
/usr/include/libxml2 
  1. In Project > Build Phases > Compile Sources, add this Compiler Flag for all TouchXML .m files:
-fno-objc-arc

Example Usage

Change the textfield class in IB in the Identity inspector > Custom Class field to SAAutoCompletingTextField. Or add the textfield into your view manually with:

SAAutoCompletingTextField *textField = [[SAAutoCompletingTextField alloc] init];
[self.view addSubview:textField];

Third Party Plugins

A big thank you to the makers of:

Contact

Shmoopi LLC

License

Copyright © 2009-2014 Shmoopi LLC.

This class and its usage are very intuitive and provide as simple an interface as possible for developers to plug into. Please feel free to customize the class as much as you'd like, or use any of the code within your projects. If you do add to the project, make sure to let me know so we can merge any changes.

If you like what you see here, or on our website, please feel free to drop us a line or purchase one of our applications!

~Shmoopi LLC