Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,22 @@ Autocomplete text field. It works like Safari (iOS) or Chrome (iOS) search / add

![screenShot](https://github.com/Antol/APAutocompleteTextField/raw/master/Screen%20Shot.png)

###How to install
### How to install

Install using CocoaPods.

pod 'APAutocompleteTextField'

### Usage

**Programmatic:**

APAutocompleteTextField *textField = [[APAutocompleteTextField alloc] initWithFrame:CGRectMake(0, 0, 200, 30) selectionColor:[UIColor greenColor]];
textField.delegate = self;

**Storyboard:**

Set the class to `APAutocompleteTextField` and assign the `selectionColor` in your `viewDidLoad`:

self.textField.selectionColor = [UIColor greenColor];
self.textField.delegate = self;