From f74019e9d952abb61d43644a5902879afd523996 Mon Sep 17 00:00:00 2001 From: webbrain-one <295484252+webbrain-one@users.noreply.github.com> Date: Mon, 10 Aug 2026 00:51:18 +0300 Subject: [PATCH] Fix README example references and usage notes Update file references to resolve example build failures. Clarify selectionColor initialization for storyboard usage. --- README.md | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 9cdb1a0..eacadaf 100644 --- a/README.md +++ b/README.md @@ -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;